コード例 #1
0
 def test_detect_NUMBERIC_DOUBLE_on_h9gi_nx95_LATITUDE(self):
     expected_type = TypeDetector.DETECTOR_NUMERIC_DOUBLE
     detected = TypeDetector.detect_from_regex(
         expected_type, self.database_NYPD_MVC.LATITUDE)[1]
     self.assertEqual(88, len(detected))
コード例 #2
0
 def test_detect_NUMBERIC_INTEGER_on_h9gi_nx95_Unique_key(self):
     expected_type = TypeDetector.DETECTOR_NUMERIC_INT
     detected = TypeDetector.detect_from_regex(
         expected_type, self.database_NYPD_MVC['Unique Key'])[1]
     self.assertEqual(100, len(detected))
コード例 #3
0
 def test_detect_TEMPORAL_DATE_TIME_on_2j7x_tvss_Created_date(self):
     expected_type = TypeDetector.DETECTOR_TEMPORAL_DATE_TIME
     detected = TypeDetector.detect_from_regex(
         expected_type, self.database_2j7x_tvss['Created Date'])[1]
     self.assertEqual(100, len(detected))
コード例 #4
0
 def test_detect_GEO_GPS_latlon_on_h9gi_nx95_LATITUDE(self):
     detected = TypeDetector.detect_from_regex(
         TypeDetector.DETECTOR_GEO_GPS_LAT_OR_LON,
         self.database_NYPD_MVC.LATITUDE)[1]
     self.assertEqual(88, len(detected))
コード例 #5
0
 def test_detect_TEMPORAL_DATE_on_h9gi_nx95_DATE(self):
     detected = TypeDetector.detect_from_regex(
         TypeDetector.DETECTOR_TEMPORAL_DATE,
         self.database_NYPD_MVC.DATE)[1]
     self.assertEqual(100, len(detected))