Exemple #1
0
 def test_check_file_format_False(self):
     formats = ('ascii',)
     fmt = 'fits'
     result = io._check_file_format(fmt)
     self.failIf(result == True)
Exemple #2
0
    def test_check_file_format(self):
        formats = ('ascii',)
	fmt = 'ascii'
	test_result = fmt in formats
	result = io._check_file_format('ascii')
	self.failUnless(result == test_result)