def test_get_public_untagged_with_owner(self): result = Link.get_public_untagged(4) self.assertEqual(len(result), 1) self.assertEqual(result[0].linkid, 7) result = Link.get_public_untagged(3) self.assertEqual(len(result), 0)
def test_get_public_untagged(self): result = Link.get_public_untagged() for r in result: print(str(r.linkid) + ' ' + str(r.is_public)) self.assertEqual(len(result), 1) self.assertEqual(result[0].linkid, 7)