~corey.bryant/charm-helpers/systemd

« back to all changes in this revision

Viewing changes to tests/contrib/amulet/test_utils.py

  • Committer: Chris MacNaughton
  • Date: 2016-04-05 21:46:12 UTC
  • mto: This revision was merged to the branch mainline in revision 562.
  • Revision ID: chris.macnaughton@canonical.com-20160405214612-t9m7z2mz1d8pl58t
fix test

Show diffs side-by-side

added added

removed removed

Lines of Context:
376
376
        expected = {self.sentry_unit: {"foo": 3}}
377
377
        actual = {self.sentry_unit: {"foo": [12345, 67890]}}
378
378
        result = self.utils.validate_unit_process_ids(expected, actual)
379
 
        self.assertIsNone(result)
 
379
        self.assertIsNotNone(result)
380
380
 
381
381
    def test_accepts_bool(self):
382
382
        """
394
394
        expected = {self.sentry_unit: {"foo": True}}
395
395
        actual = {self.sentry_unit: {"foo": []}}
396
396
        result = self.utils.validate_unit_process_ids(expected, actual)
397
 
        self.assertIsNone(result)
 
397
        self.assertIsNotNone(result)