Example #1
0
 def test_full(self):
     xfile = GSMBBSFileSource('test', 0, 'tests/data/full_file.dat')
     self.assertTrue(xfile.read_and_store_data(self.conn))
     g_major =self.conn.exec_return('select g_major ' \
                                      'from detections where lra < 123.0;')
     self.assertEqual(g_major, 0.0)
     g_major =self.conn.exec_return('select g_major ' \
                                      'from detections where lra > 125.6;')
     self.assertEqual(g_major, 0.101701)
Example #2
0
 def test_full2(self):
     xfile = GSMBBSFileSource('test', 0, 'tests/data_extended/field_ext.dat')
     self.assertTrue(xfile.read_and_store_data(self.conn))
Example #3
0
 def test_first_file(self):
     xfile = GSMBBSFileSource('test', 0, 'tests/data/new_field.dat', 'test')
     self.assertTrue(xfile.read_and_store_data(self.conn))