def test_other_author_of_post_isnt(self): post = {'author_id': 'another'} r = user_author_of_post(self.userInfo, post) self.assertFalse(r)
def test_user_author_of_post(self): post = {'author_id': self.userInfo.id} r = user_author_of_post(self.userInfo, post) self.assertTrue(r)