def test_find_all_plans_registered_under_an_email(self): self._create_plan() resp = Plans().get(email=self.user.email) self.assertEqual(len(resp.json()["plans"]), 1) self._assert_test_plan(resp.json()["plans"][0])
def test_get_plan_without_email(self): self._create_plan() resp = Plans().get(name=self.TEST_PLAN["name"]) self.assertEqual(len(resp.json()["plans"]), 1) self._assert_test_plan(resp.json()["plans"][0])