示例#1
0
 def test_assert_not_present_not_present_sub_structure(self):
     assertions.assert_not_present(
         {'user': {
             'foo': AnyValue('str')
         }},
         {'user': {
             'bar': 42
         }},
     )
示例#2
0
 def test_assert_not_present_but_present(self):
     with self.assertRaises(AssertionError):
         assertions.assert_not_present(
             {'foo': AnyValue('str')},
             {
                 'foo': 'Hello',
                 'bar': 42
             },
         )
示例#3
0
 def assert_test_case_action_results(
     self,
     action_name,
     action_case,
     test_case,
     test_fixture,
     action_response,
     job_response,
     msg=None,
     **kwargs
 ):
     if 'expects_not_present' in action_case:
         assert_not_present(
             action_case['expects_not_present'],
             action_response.body,
             msg,
         )
示例#4
0
 def test_assert_not_present_not_present(self):
     assertions.assert_not_present(
         {'foo': AnyValue('str')},
         {'bar': 42},
     )