~nskaggs/juju-ci-tools/add-assess-terms

« back to all changes in this revision

Viewing changes to tests/test_jujupy.py

  • Committer: Curtis Hovey
  • Date: 2016-11-14 20:10:26 UTC
  • mto: This revision was merged to the branch mainline in revision 1726.
  • Revision ID: curtis@canonical.com-20161114201026-315ys51e1ct7f413
Rename disable_command_* to command_set_*.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3268
3268
 
3269
3269
    def test_disable_commands_properties(self):
3270
3270
        client = EnvJujuClient(JujuData('foo'), None, None)
3271
 
        self.assertEqual('destroy-model', client.disable_command_destroy_model)
3272
 
        self.assertEqual('remove-object', client.disable_command_remove_object)
3273
 
        self.assertEqual('all', client.disable_command_all)
 
3271
        self.assertEqual('destroy-model', client.command_set_destroy_model)
 
3272
        self.assertEqual('remove-object', client.command_set_remove_object)
 
3273
        self.assertEqual('all', client.command_set_all)
3274
3274
 
3275
3275
    def test_list_disabled_commands(self):
3276
3276
        client = EnvJujuClient(JujuData('foo'), None, None)
5032
5032
    def test_disable_commands_properties(self):
5033
5033
        client = EnvJujuClient1X(SimpleEnvironment('foo'), None, None)
5034
5034
        self.assertEqual(
5035
 
            'destroy-environment', client.disable_command_destroy_model)
5036
 
        self.assertEqual('remove-object', client.disable_command_remove_object)
5037
 
        self.assertEqual('all-changes', client.disable_command_all)
 
5035
            'destroy-environment', client.command_set_destroy_model)
 
5036
        self.assertEqual('remove-object', client.command_set_remove_object)
 
5037
        self.assertEqual('all-changes', client.command_set_all)
5038
5038
 
5039
5039
    def test_list_disabled_commands(self):
5040
5040
        client = EnvJujuClient1X(SimpleEnvironment('foo'), None, None)