Revision 2b5b0fe9 test/ganeti.utils.algo_unittest.py
b/test/ganeti.utils.algo_unittest.py | ||
---|---|---|
1 | 1 |
#!/usr/bin/python |
2 | 2 |
# |
3 | 3 |
|
4 |
# Copyright (C) 2011 Google Inc. |
|
4 |
# Copyright (C) 2011, 2012 Google Inc.
|
|
5 | 5 |
# |
6 | 6 |
# This program is free software; you can redistribute it and/or modify |
7 | 7 |
# it under the terms of the GNU General Public License as published by |
... | ... | |
286 | 286 |
class TestJoinDisjointDicts(unittest.TestCase): |
287 | 287 |
def setUp(self): |
288 | 288 |
self.non_empty_dict = {"a": 1, "b": 2} |
289 |
self.empty_dict = dict()
|
|
289 |
self.empty_dict = {}
|
|
290 | 290 |
|
291 | 291 |
def testWithEmptyDicts(self): |
292 | 292 |
self.assertEqual(self.empty_dict, algo.JoinDisjointDicts(self.empty_dict, |
Also available in: Unified diff