libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [4/9] git commit: Add additional assert.
Date Wed, 05 Feb 2014 19:45:00 GMT
Add additional assert.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/f93432e6
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/f93432e6
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/f93432e6

Branch: refs/heads/trunk
Commit: f93432e6e227f721d07f5ec5343a5e5915d7bce3
Parents: c1cab59
Author: Tomaz Muraus <tomaz@apache.org>
Authored: Wed Feb 5 14:35:25 2014 +0100
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Wed Feb 5 14:35:25 2014 +0100

----------------------------------------------------------------------
 libcloud/test/dns/test_route53.py | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/f93432e6/libcloud/test/dns/test_route53.py
----------------------------------------------------------------------
diff --git a/libcloud/test/dns/test_route53.py b/libcloud/test/dns/test_route53.py
index 5e41dd7..93355ab 100644
--- a/libcloud/test/dns/test_route53.py
+++ b/libcloud/test/dns/test_route53.py
@@ -58,10 +58,15 @@ class Route53Tests(unittest.TestCase):
         self.assertEqual(record.type, RecordType.A)
         self.assertEqual(record.data, '208.111.35.173')
 
-        mx_record = records[3]
-        self.assertEqual(mx_record.type, RecordType.MX)
-        self.assertEqual(mx_record.data, 'ASPMX.L.GOOGLE.COM.')
-        self.assertEqual(mx_record.extra['priority'], 1)
+        record = records[3]
+        self.assertEqual(record.type, RecordType.MX)
+        self.assertEqual(record.data, 'ASPMX.L.GOOGLE.COM.')
+        self.assertEqual(record.extra['priority'], 1)
+
+        record = records[4]
+        self.assertEqual(record.type, RecordType.MX)
+        self.assertEqual(record.data, 'ALT1.ASPMX.L.GOOGLE.COM.')
+        self.assertEqual(record.extra['priority'], 5)
 
     def test_get_zone(self):
         zone = self.driver.get_zone(zone_id='47234')


Mime
View raw message