2013/2/13 Michele Tartara <[email protected]>:
> +class TestInstReason(unittest.TestCase):
> +  def testGetJson(self):
> +    reason_text = "OS Update"
> +    reason_source = constants.INSTANCE_REASON_CLI
> +    origDict = dict(text=reason_text, source=reason_source)
> +
> +    reason = backend.InstReason(reason_text, reason_source)
> +    json = reason.GetJson()
> +    resultDict = serializer.LoadJson(json)
> +
> +    self.assertEqual(origDict, resultDict)
> +
>  if __name__ == "__main__":

Two empty lines at module level, then LGTM.

>    testutils.GanetiTestProgram()

Michael

Reply via email to