wingo - in flumotion/trunk: . flumotion/test
flumotion-commit at lists.fluendo.com
flumotion-commit at lists.fluendo.com
Mon Jul 23 18:49:36 CEST 2007
Author: wingo
Date: Mon Jul 23 18:49:28 2007
New Revision: 5342
Modified:
flumotion/trunk/ChangeLog
flumotion/trunk/flumotion/test/test_common_netutils.py
Log:
2007-07-23 Andy Wingo <wingo at pobox.com>
* flumotion/test/test_common_netutils.py
(TestRoutingTable.testRouteNamesOrder): New test, that
getRouteNames() returns the names in the order in which they are
first seen by the routing table.
Modified: flumotion/trunk/ChangeLog
==============================================================================
--- flumotion/trunk/ChangeLog (original)
+++ flumotion/trunk/ChangeLog Mon Jul 23 18:49:28 2007
@@ -1,3 +1,10 @@
+2007-07-23 Andy Wingo <wingo at pobox.com>
+
+ * flumotion/test/test_common_netutils.py
+ (TestRoutingTable.testRouteNamesOrder): New test, that
+ getRouteNames() returns the names in the order in which they are
+ first seen by the routing table.
+
2007-07-23 Zaheer Abbas Merali <zaheerabbas at merali dot org>
* flumotion/component/producers/playlist/playlist.py
Modified: flumotion/trunk/flumotion/test/test_common_netutils.py
==============================================================================
--- flumotion/trunk/flumotion/test/test_common_netutils.py (original)
+++ flumotion/trunk/flumotion/test/test_common_netutils.py Mon Jul 23 18:49:28 2007
@@ -180,3 +180,19 @@
'0.0.0.0/0 general',
[('foo', '192.168.1.1', 32),
('general', '0.0.0.0', 0)])
+
+ def assertRouteNamesOrder(self, string, routeNames):
+ f = StringIO.StringIO(string)
+ net = RoutingTable.fromFile(f)
+ f.close()
+
+ self.assertEquals(net.getRouteNames(), routeNames)
+
+ def testRouteNamesOrder(self):
+ self.assertRouteNamesOrder('#comment\n'
+ ' \n'
+ '192.168.1.1/32 foo\n'
+ '192.168.2.1/32 bar\n'
+ '192.168.3.1/32 foo\n'
+ ,
+ ['foo', 'bar'])
More information about the flumotion-commit
mailing list