def test_should_return_none_given_invalid_id(self): permission = Permission.get(2) self.assertEqual(permission, None)
def test_should_return_permission_given_valid_id(self): permission = Permission.get(1) self.assertEqual(permission, self.admin_permission)