def test_set_attributes(self): fluent = Fluent() fluent.name = 'john' fluent.developer() fluent.age(25) self.assertEqual('john', fluent.name) self.assertTrue(fluent.developer) self.assertEqual(25, fluent.age) self.assertEqual({'name': 'john', 'developer': True, 'age': 25}, fluent.get_attributes())
def test_set_attributes(self): fluent = Fluent() fluent.name = 'john' fluent.developer() fluent.age(25) self.assertEqual('john', fluent.name) self.assertTrue(fluent.developer) self.assertEqual(25, fluent.age) self.assertEqual({ 'name': 'john', 'developer': True, 'age': 25 }, fluent.get_attributes())
def test_set_attributes(self): fluent = Fluent() fluent.name = "john" fluent.developer() fluent.age(25) self.assertEqual("john", fluent.name) self.assertTrue(fluent.developer) self.assertEqual(25, fluent.age) self.assertEqual({ "name": "john", "developer": True, "age": 25 }, fluent.get_attributes())