def test_properties(self): note = Note() note.body = 'xxx' note.email = '*****@*****.**' note.user_id = '123' self.assertEqual('xxx', note.body) self.assertEqual('*****@*****.**', note.email) self.assertEqual('123', note.user_id)
def test_properties(): note = Note() note.body = 'xxx' note.email = '*****@*****.**' note.user_id = '123' note.created_at = datetime.fromtimestamp(1331764344) eq_(note.body, 'xxx') eq_(note.email, '*****@*****.**') eq_(note.user_id, '123')