def test_are_attributes_valid__returns_false(self): """ Test that invalid attributes returns False. """ self.assertFalse(validator.are_attributes_valid('key:value')) self.assertFalse(validator.are_attributes_valid(['key', 'value'])) self.assertFalse(validator.are_attributes_valid(42))
def test_are_attributes_valid__returns_true(self): """ Test that valid attributes returns True. """ self.assertTrue(validator.are_attributes_valid({'key': 'value'}))