def test_init(self): lookup1 = Normal(key="key", value="value") self.assertIsNotNone(lookup1) self.assertEqual("<Normal(id='n/a', key='key', value='value')>", str(lookup1)) lookup2 = Normal(id=1, key="key", value="value") self.assertIsNotNone(lookup2) self.assertEqual("<Normal(id='1', key='key', value='value')>", str(lookup2))
def _get_entity(self, key, value): return Normal(key=key, value=value)