diff options
| author | Alex Meade <alex.meade@rackspace.com> | 2012-03-09 17:07:37 +0000 |
|---|---|---|
| committer | Alex Meade <alex.meade@rackspace.com> | 2012-03-09 17:07:37 +0000 |
| commit | 1c68d20e4bc9ca48a01b932f4c511f55cd54f4a9 (patch) | |
| tree | e4643ec20c02f6de37310a087c522ca9ce4881f6 | |
| parent | 0c3c67e085018316d2e6174d852bbc8cd2e4ccb1 (diff) | |
| download | nova-1c68d20e4bc9ca48a01b932f4c511f55cd54f4a9.tar.gz nova-1c68d20e4bc9ca48a01b932f4c511f55cd54f4a9.tar.xz nova-1c68d20e4bc9ca48a01b932f4c511f55cd54f4a9.zip | |
Update values in test_flagfile to be different.
This will ensure the test is actually getting the correct values
Change-Id: I648488c0f573a4d402408cfaf66c1f144c116e1d
| -rw-r--r-- | nova/tests/test_flags.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nova/tests/test_flags.py b/nova/tests/test_flags.py index 46acd77d2..153db953a 100644 --- a/nova/tests/test_flags.py +++ b/nova/tests/test_flags.py @@ -114,7 +114,7 @@ class FlagsTestCase(test.TestCase): try: os.write(fd, '--string=foo\n--int=2\n--false\n--notrue\n') - os.write(fd, '--multi=foo\n') # FIXME(markmc): --multi=bar\n') + os.write(fd, '--multi=bar\n') os.close(fd) self.FLAGS(['flags_test', '--flagfile=' + path]) @@ -123,11 +123,11 @@ class FlagsTestCase(test.TestCase): self.assertEqual(self.FLAGS.int, 2) self.assertEqual(self.FLAGS.false, True) self.assertEqual(self.FLAGS.true, False) - self.assertEqual(self.FLAGS.multi, ['foo']) # FIXME(markmc): 'bar' + self.assertEqual(self.FLAGS.multi, ['bar']) # Re-parse to test multistring isn't append multiple times self.FLAGS(['flags_test', '--flagfile=' + path]) - self.assertEqual(self.FLAGS.multi, ['foo']) # FIXME(markmc): 'bar' + self.assertEqual(self.FLAGS.multi, ['bar']) finally: os.remove(path) |
