diff options
author | Eric Wehrmeister <eric.wehrmeister@rackspace.com> | 2016-03-04 11:53:08 -0600 |
---|---|---|
committer | Eric Wehrmeister <eric.wehrmeister@rackspace.com> | 2016-03-04 11:53:08 -0600 |
commit | 319a331e513a57ce1419b11f1a618158a5e33870 (patch) | |
tree | 3c721b72d93e51a8f2378052775575776139576e /designateclient | |
parent | 900d82deda93fd72396755e2c2d3d99445c570ab (diff) | |
download | python-designateclient-319a331e513a57ce1419b11f1a618158a5e33870.tar.gz |
Improved TestRecordsetNegative
Added a parent to the class and hardcoded the zone id and name in one of the tests.
Change-Id: I8f973e52561d4644821148690430be4c0c1944c0
Diffstat (limited to 'designateclient')
-rw-r--r-- | designateclient/functionaltests/v2/test_recordsets.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/designateclient/functionaltests/v2/test_recordsets.py b/designateclient/functionaltests/v2/test_recordsets.py index 6be2a2d..e104ba4 100644 --- a/designateclient/functionaltests/v2/test_recordsets.py +++ b/designateclient/functionaltests/v2/test_recordsets.py @@ -102,11 +102,12 @@ class TestRecordset(BaseDesignateTest): self.assertEqual(rset.ttl, 'None') -class TestRecordsetNegative(object): +class TestRecordsetNegative(BaseDesignateTest): def test_invalid_option_on_recordset_create(self): - cmd = 'recordset create {0} aaa.{1} --type A --records 1.2.3.4 ' \ - '--invalid "not valid"'.format(self.zone.id, self.zone.name) + cmd = 'recordset create de47d30b-41c5-4e38-b2c5-e0b908e19ec7 ' \ + 'aaa.desig.com. --type A --records 1.2.3.4 ' \ + '--invalid "not valid"' self.assertRaises(CommandFailed, self.clients.openstack, cmd) def test_invalid_recordset_command(self): |