def test_get_method_return_attributes(self): fluent = Fluent(name='john') self.assertEqual('john', fluent.get('name')) self.assertEqual('default', fluent.get('foo', 'default')) self.assertEqual('john', fluent.name) self.assertEqual(None, fluent.foo)
def test_get_method_return_attributes(self): fluent = Fluent(name="john") self.assertEqual("john", fluent.get("name")) self.assertEqual("default", fluent.get("foo", "default")) self.assertEqual("john", fluent.name) self.assertEqual(None, fluent.foo)