コード例 #1
0
    def test_should_return_none_given_invalid_id(self):
        permission = Permission.get(2)

        self.assertEqual(permission, None)
コード例 #2
0
    def test_should_return_permission_given_valid_id(self):
        permission = Permission.get(1)

        self.assertEqual(permission, self.admin_permission)