def test_registry_3(self): registry = DatePeriodRegistry(MinutesPeriod, HoursPeriod) field = DatePeriodField() field.period_registry = registry self.assertEqual(list(registry.choices()), list(field.choices))
def test_registry_3(self): registry = DatePeriodRegistry(MinutesPeriod, HoursPeriod) field = DatePeriodField() field.period_registry = registry self.assertListEqual([*registry.choices()], [*field.choices])
def test_registry_2(self): registry = DatePeriodRegistry(MinutesPeriod, HoursPeriod) self.assertEqual( list(registry.choices()), list(DatePeriodField(period_registry=registry).choices))
def test_registry_2(self): registry = DatePeriodRegistry(MinutesPeriod, HoursPeriod) self.assertListEqual( [*registry.choices()], [*DatePeriodField(period_registry=registry).choices] )