def test_query_user_story_name(self): """ Simple tests just check if there exists a UserStory with a name containing the word 'owner' """ query = "name:owner" self.assert_(len(UserStory.query(query)) > 0)
def test_query_user_story_id(self): """ Check if the US30 exists """ query = "id:30" result = UserStory.query(query) self.assertEqual(len(result), 1) self.assertEqual(result[0].id, 30)