def test_simple_type_should_return_TEXTUAL(self):
     self.type_counts[TypeDetector.TEXTUAL] = 2
     self.type_counts[TypeDetector.NUMERIC] = 1
     simple_type = TypeDetector.simple_type_of(self.type_counts)
     self.assertEqual(TypeDetector.TEXTUAL, simple_type)
 def test_simple_type_should_return_NULL_when_all_types_are_zero(self):
     simple_type = TypeDetector.simple_type_of(self.type_counts)
     self.assertEqual(TypeDetector.NULL, simple_type)
 def test_simple_type_should_return_NUMERIC(self):
     self.type_counts[TypeDetector.TEMPORAL_DATE] = 1
     self.type_counts[TypeDetector.NUMERIC] = 2
     simple_type = TypeDetector.simple_type_of(self.type_counts)
     self.assertEqual(TypeDetector.NUMERIC, simple_type)