def test_get_types_normal_input(self): """ Tests get_type on an input file containing only strings, commas, and integer numerics """ new_csv = CSV("example.csv") types = new_csv.get_types() self.assertEqual(new_csv.type_list, ['String', 'String', 'String', 'Numeric'])
def test_get_types_normal_input(self): """ Tests get_type on an input file containing only strings, commas, and integer numerics """ new_csv = CSV("example.csv") types = new_csv.get_types() self.assertEqual(new_csv.type_list, ['String', 'String', 'String', 'Numeric'])
def test_get_types_empty_cells(self): """Tests get_types on an input file containing empty cells""" new_csv = CSV("empty_cells.csv") types = new_csv.get_types() self.assertEqual(new_csv.type_list, ['String', 'String', 'Numeric'])
def test_get_types_decimal_input(self): """Tests get_types on an input file containing negative numbers""" new_csv = CSV("float_numbers.csv") types = new_csv.get_types() self.assertEqual(new_csv.type_list, ['String', 'Numeric', 'Numeric'])
def test_get_types_empty_input(self): """Tests get_types on an empty file""" new_csv = CSV("empty.csv") types = new_csv.get_types() self.assertEqual(new_csv.type_list, ['String'])
def test_get_types_empty_cells(self): """Tests get_types on an input file containing empty cells""" new_csv = CSV("empty_cells.csv") types = new_csv.get_types() self.assertEqual(new_csv.type_list, ['String', 'String', 'Numeric'])
def test_get_types_decimal_input(self): """Tests get_types on an input file containing negative numbers""" new_csv = CSV("float_numbers.csv") types = new_csv.get_types() self.assertEqual(new_csv.type_list, ['String', 'Numeric', 'Numeric'])
def test_get_types_empty_input(self): """Tests get_types on an empty file""" new_csv = CSV("empty.csv") types = new_csv.get_types() self.assertEqual(new_csv.type_list, ['String'])