def test_show_definition_non_dict(self): definition = "something that doesn't matter" testjob = models.TestJob( definition=definition ) display = yaml.load(testjob.show_definition) self.assertEqual(definition, display)
def test_show_definition_hides_secrets(self): definition = "foo: bar\nsecrets:\n baz: qux\n" testjob = models.TestJob( definition=definition ) display = yaml.load(testjob.show_definition) self.assertNotEqual('qux', display['secrets']['baz'])