Пример #1
0
 def test_new_project_has_name_different_name(self):
     lazy_result = Project.new(name="my favourite project")
     self.assertEqual("my favourite project", lazy_result.evaluate().name)
Пример #2
0
 def test_new_project_is_response_containing_project(self):
     lazy_result = Project.new(name="my first project")
     self.assertTrue(isinstance(lazy_result.evaluate(), Project))
Пример #3
0
 def test_new_project_has_name(self):
     lazy_result = Project.new(name="my first project")
     self.assertEqual("my first project", lazy_result.evaluate().name)
Пример #4
0
    def test_new_project_is_response(self):
        from foundations_core_rest_api_components.lazy_result import LazyResult

        lazy_result = Project.new(name="my first project")
        self.assertTrue(isinstance(lazy_result, LazyResult))