def test_composer__styles(self): choices = admin.TileInlineForm().fields["style"].widget.choices expected_choices = [ ("context", "Context"), ("tile", "Tile"), ] self.assertEqual(choices, expected_choices)
def test_duplicate_removal_styles(self): choices = admin.TileInlineForm().fields["style"].widget.choices expected_choices = [("3rdparty_override", "3rdparty override"), ("context", "Context"), ("detail", "Detail"), ("extra_style", "Extra style"), ("style_for_model_one", "Style for model one"), ("tile", "Tile")] self.assertEqual(choices, expected_choices)
def test_app_excludes_styles(self): choices = admin.TileInlineForm().fields["style"].widget.choices expected_choices = [ ("context", "Context"), ("style_for_model_one", "Style for model one"), ("tile", "Tile"), ] self.assertEqual(choices, expected_choices)
def test_composer_excludes_styles(self): choices = admin.TileInlineForm().fields["style"].widget.choices expected_choices = [ ("3rdparty_override", "3rdparty override"), ("extra_style", "Extra style"), ("style_for_model_one", "Style for model one"), ("tile", "Tile"), ] self.assertEqual(choices, expected_choices)