def test_exception_handling(self): self.set_field_exception(Exception) self.assertEqual(0, CDBP.cdb_channel_config_exists('Channel'))
def test_ok(self): self.set_field_return_value(['Stuff']) self.assertEqual(1, CDBP.cdb_channel_config_exists('Channel'))