summaryrefslogtreecommitdiffstats
path: root/snaps/domain
diff options
context:
space:
mode:
authorspisarski <s.pisarski@cablelabs.com>2017-05-04 12:43:53 -0600
committerspisarski <s.pisarski@cablelabs.com>2017-05-08 09:31:16 -0600
commitd1c4675e5c35257b84cd69969c6e67575faf19db (patch)
tree63ff3b41ff445b8c192ec33c0aefb913a112b613 /snaps/domain
parent40c96233ca4c27de1b3d8b53187c302ddd6208a2 (diff)
Modified code to support both Python 2.7 and 3.x
* Tested on Python 2.7.10 and 3.4.4 * Updated installation documentation JIRA: SNAPS-30 Change-Id: I94a37d218be8ea47bbbcfb560197737430fcb3ba Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Diffstat (limited to 'snaps/domain')
-rw-r--r--snaps/domain/test/image_tests.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/snaps/domain/test/image_tests.py b/snaps/domain/test/image_tests.py
index de517eb..53d9526 100644
--- a/snaps/domain/test/image_tests.py
+++ b/snaps/domain/test/image_tests.py
@@ -25,15 +25,15 @@ class ImageDomainObjectTests(unittest.TestCase):
def test_construction_positional(self):
props = {'foo': 'bar'}
image = Image('name', 'id', 100, props)
- self.assertEquals('name', image.name)
- self.assertEquals('id', image.id)
- self.assertEquals(100, image.size)
- self.assertEquals(props, image.properties)
+ self.assertEqual('name', image.name)
+ self.assertEqual('id', image.id)
+ self.assertEqual(100, image.size)
+ self.assertEqual(props, image.properties)
def test_construction_named(self):
props = {'foo': 'bar'}
image = Image(image_id='id', properties=props, name='name', size=101)
- self.assertEquals('name', image.name)
- self.assertEquals('id', image.id)
- self.assertEquals(101, image.size)
- self.assertEquals(props, image.properties)
+ self.assertEqual('name', image.name)
+ self.assertEqual('id', image.id)
+ self.assertEqual(101, image.size)
+ self.assertEqual(props, image.properties)