def test_assert_not_present_not_present_sub_structure(self): assertions.assert_not_present( {'user': { 'foo': AnyValue('str') }}, {'user': { 'bar': 42 }}, )
def test_assert_not_present_but_present(self): with self.assertRaises(AssertionError): assertions.assert_not_present( {'foo': AnyValue('str')}, { 'foo': 'Hello', 'bar': 42 }, )
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, )
def test_assert_not_present_not_present(self): assertions.assert_not_present( {'foo': AnyValue('str')}, {'bar': 42}, )