コード例 #1
0
 def test_create_table_factory_objects_6(self):
     """Does the function return the correct output when given the correct input?"""
     table_data = list(create_table_factory_objects(self.example_file6))
     expected = [{(2, 6): 1, (4, 5): 1, (2, 11): 1, (2, 1): 1, (2, 13): 1, (5, 15): 0, (2, 2): 1, (2, 5): 2, (2, 4): 1}, ['10:89673416', '10:89673554', '10:89673569', '10:89673576', '10:89673612', '10:89673786'], ['HG00096', 'HG00097', 'HG00099', 'HG00100', 'HG00101', 'HG00102', 'HG00103', 'HG00104', 'HG00106', 'HG00108', 'HG00109', 'HG00110', 'HG00111', 'HG00112', 'HG00113', 'HG00114']]
     self.assertEqual(table_data, expected)
コード例 #2
0
 def test_create_table_factory_objects_5(self):
     """Does the function return the correct output when given the correct input?"""
     table_data = list(create_table_factory_objects(self.example_file5))
     expected = [{(0, 0):2, (1, 0):1, (2, 0):1, (3, 0):1, (4, 0):1, (5, 0):1},['1:25611035', '1:25627613', '1:25627628', '1:25656531', '1:25656673', '1:25688901'], ['TNT028']]
     self.assertEqual(table_data, expected)
コード例 #3
0
 def test_create_table_factory_objects_2(self):
     """Does the function return the correct output when given the correct input?"""
     table_data = list(create_table_factory_objects(self.example_file2))
     expected = [{(1, 11):0}, ['10:89674917', '10:89674997'], ['HG00096', 'HG00097', 'HG00099', 'HG00100', 'HG00101', 'HG00102', 'HG00103', 'HG00104', 'HG00106', 'HG00108', 'HG00109', 'HG00110']]
     self.assertEqual(table_data, expected)
コード例 #4
0
 def test_create_table_factory_objects_4(self):
     """Does the function return the correct output when given the correct input?"""
     table_data = list(create_table_factory_objects(self.example_file4))
     expected = [{(3, 1):1},['10:89674917', '10:89674997', '10:89675036', '10:89675296'], ['HG00096', 'HG00097']]
     self.assertEqual(table_data, expected)
コード例 #5
0
 def test_create_table_factory_objects(self):
     """Does the function return the correct output when given the correct input?"""
     table_data = list(create_table_factory_objects(self.example_file1))
     expected = [{(0, 4):0}, ['10:89623323'], ['HG00096', 'HG00097', 'HG00099', 'HG00100', 'HG00101']]
     self.assertEqual(table_data, expected)