예제 #1
0
파일: test_booth.py 프로젝트: gmelikov/pcs
 def test_raises_when_is_created_already(self):
     assert_raise_library_error(
         lambda: commands.create_in_cluster(_env_fixture("somename"),
                                            ip="1.2.3.4"),
         (Severities.ERROR, report_codes.BOOTH_ALREADY_IN_CIB, {
             "name": "somename",
         }),
     )
예제 #2
0
 def test_raises_when_is_created_already(self):
     assert_raise_library_error(
         lambda: commands.create_in_cluster(
             mock.MagicMock(), "somename", ip="1.2.3.4",
         ),
         (
             Severities.ERROR,
             report_codes.BOOTH_ALREADY_IN_CIB,
             {
                 "name": "somename",
             }
         ),
     )