Пример #1
0
 def test_smoke(self):
     self.__files.create({'in': ''})
     out_file_obj = StringIO.StringIO()
     import_main(argv=['shinysdr-import', 'uls', self.__in_file],
                 out=out_file_obj)
     self.assertEquals(
         'Location,Mode,Frequency,Name,Latitude,Longitude,Comment\r\n',
         out_file_obj.getvalue())
Пример #2
0
 def test_smoke(self):
     with open(self.__in_file, 'w'):
         pass
     out_file_obj = StringIO.StringIO()
     import_main(argv=['shinysdr-import', 'uls', self.__in_file], out=out_file_obj)
     self.assertEquals('Location,Mode,Frequency,Name,Latitude,Longitude,Comment\r\n', out_file_obj.getvalue())
Пример #3
0
 def test_smoke(self):
     self.__files.create({'in': ''})
     out_file_obj = six.StringIO()
     import_main(argv=['shinysdr-import', 'uls', self.__in_file], out=out_file_obj)
     self.assertEqual('Location,Mode,Frequency,Name,Latitude,Longitude,Comment\r\n', out_file_obj.getvalue())