def test_conflict(self):
    'Test that it detects conflicts.'
    self.assertRaisesRegex(ValueError, '42', tools.merge_unique_dicts, self.dct1, **{'42': 'bad'})
    self.assertRaisesRegex(ValueError, '42', tools.merge_unique_dicts, self.dct1, self.dct1)
    self.assertRaisesRegex(ValueError, '42', tools.merge_unique_dicts, self.dct1, **self.dct1)
Test that it detects conflicts.
def test_conflict(self):
    
    self.assertRaisesRegex(ValueError, '42', tools.merge_unique_dicts, self.dct1, **{'42': 'bad'})
    self.assertRaisesRegex(ValueError, '42', tools.merge_unique_dicts, self.dct1, self.dct1)
    self.assertRaisesRegex(ValueError, '42', tools.merge_unique_dicts, self.dct1, **self.dct1)