def test_to_dict(self): """ Test attribute to_dict function """ a = Attribute('bob', 123, "Bob is the name") d = a.to_dict() self.assertEquals('bob', d['id']) self.assertEquals(123, d['value']) self.assertEquals('Bob is the name', d['name'])
def test_to_dict(self): """ Test attribute to_dict function """ a = Attribute('bob', 123, "Bob is the name") d = a.to_dict() assert 'bob' == d['id'] assert 123 == d['value'] assert 'Bob is the name' == d['name']
def test_to_dict(self): """ Test attribute to_dict function """ a = Attribute('bob', 123, "Bob is the name") d = a.to_dict() self.assertEquals('bob', d['id']) self.assertEquals(123, d['value']) self.assertEquals('Bob is the name', d['name'])
def test_basic(self): a = Attribute('my_id', 12, name="My Attribute") d = a.to_dict() validate_attribute(d)
def test_basic(self): a = Attribute('my_id', 12, name="My Attribute") d = a.to_dict() validate_attribute(d)