def test_parse_map_data_input(self): expected = { "esea": [ motw.MapRecord(1441497600, "de_dust2"), motw.MapRecord(1442102400, "de_train"), motw.MapRecord(1442707200, "de_mirage"), motw.MapRecord(1443312000, "de_cbble"), motw.MapRecord(1443916800, "de_overpass"), motw.MapRecord(1444521600, "de_mirage"), motw.MapRecord(1445126400, "de_inferno"), motw.MapRecord(1445731200, "de_cache"), motw.MapRecord(1446336000, "de_dust2"), ], "cevo": [ motw.MapRecord(1440288000, "de_cbble"), motw.MapRecord(1440892800, "de_season"), motw.MapRecord(1441497600, "de_inferno"), motw.MapRecord(1442102400, "de_train"), motw.MapRecord(1442707200, "de_cache"), motw.MapRecord(1443312000, "de_overpass"), motw.MapRecord(1443916800, "de_dust2"), motw.MapRecord(1444521600, "de_mirage"), ], } actual = motw.parse_map_data_input(self.get_map_dict(), '%Y/%m/%d') self.assertEqual(expected, motw.parse_map_data_input(self.get_map_dict(), '%Y/%m/%d'))
def get_map_data(self): return motw.parse_map_data_input(self.get_map_dict(), '%Y/%m/%d')