~ubuntu-server-dev/ubuntu/wily/python-pylxd/trunk

« back to all changes in this revision

Viewing changes to pylxd/tests/test_container.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2015-09-22 17:06:50 UTC
  • Revision ID: package-import@ubuntu.com-20150922170650-awt4t0d1ib70n6xn
Tags: 0.17-0ubuntu2
debian/patches/fix-container-state.patch: Fix container state
being displayed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
 
73
73
    def test_container_state(self, ms):
74
74
        ms.return_value = ('200', fake_api.fake_container_state('RUNNING'))
75
 
        self.assertEqual('RUNNING', self.lxd.container_state('trusty-1'))
 
75
        self.assertEqual(ms.return_value, self.lxd.container_state('trusty-1'))
76
76
        ms.assert_called_with('GET',
77
77
                              '/1.0/containers/trusty-1/state')
78
78