Example #1
0
 def test_init_py27(self):
     with pytest.raises(TypeError) as excinfo:
         _AwsService(1, 2)
     assert excinfo.value.message == "Can't instantiate abstract class " \
         "_AwsService with abstract methods " \
         "connect" \
         ", find_usage" \
         ", get_limits" \
         ", required_iam_permissions"
Example #2
0
 def test_init_py27(self):
     with pytest.raises(TypeError) as excinfo:
         _AwsService(1, 2)
     assert excinfo.value.message == "Can't instantiate abstract class " \
         "_AwsService with abstract methods " \
         "connect" \
         ", find_usage" \
         ", get_limits" \
         ", required_iam_permissions"
Example #3
0
 def test_init_py3(self):
     with pytest.raises(NotImplementedError) as excinfo:
         _AwsService(1, 2)
     assert excinfo.value.args[0] == "abstract base class"
Example #4
0
 def test_init_py3(self):
     with pytest.raises(NotImplementedError) as excinfo:
         _AwsService(1, 2)
     assert excinfo.value.args[0] == "abstract base class"