Changeset 1903 for trunk/test


Ignore:
Timestamp:
08/26/10 12:05:20 (14 years ago)
Author:
Malte Marquarding
Message:

getXYZno returns lists now not tuples

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/test_scantable.py

    r1844 r1903  
    33import shutil
    44import datetime
     5from nose.tools import *
    56from asap import scantable, selector, mask_not
    67from asap.logging import asaplog
     8# no need for log messages
    79asaplog.disable()
    8 
    9 from nose.tools import *
    1010
    1111def tempdir_setup():
     
    7272        sel.set_polarisations("YY")
    7373        self.st.set_selection(sel)
    74         assert_equal(self.st.getpolnos(), (1,))
     74        assert_equal(self.st.getpolnos(), [1])
    7575        sel1 = self.st.get_selection()
    7676        assert_equal(sel1.get_pols(), [1])
    7777        self.st.set_selection(pols="XX")
    78         assert_equal(self.st.getpolnos(), (0,))
     78        assert_equal(self.st.getpolnos(), [0])
    7979
    8080
     
    165165    def test_drop_scan(self):
    166166        s0 = self.st.drop_scan(1)
    167         assert_equal(s0.getscannos(), (0,))
     167        assert_equal(s0.getscannos(), [0])
    168168        s1 = self.st.drop_scan([0])
    169         assert_equal(s1.getscannos(), (1,))
     169        assert_equal(s1.getscannos(), [1])
    170170
    171171    def test_flag(self):
Note: See TracChangeset for help on using the changeset viewer.