Fixed partition unit test and added one more test using 
keyword arguments and assuming the new default arguments.

Signed-off-by: Mihai Rusu <dizzy@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2710 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/bin/partition_unittest.py b/client/bin/partition_unittest.py
index 35f8077..9a1e985 100644
--- a/client/bin/partition_unittest.py
+++ b/client/bin/partition_unittest.py
@@ -15,12 +15,13 @@
     def test_constructor(self):
         self.assertRaises(ValueError, partition.FsOptions, '', '', '', '')
         self.assertRaises(ValueError, partition.FsOptions, 'ext2', '', '', '')
-        obj = partition.FsOptions('ext2', '', '', 'ext2_vanilla')
-        obj = partition.FsOptions('fs', 'mkfs opts', 'mount opts', 'shortie')
+        obj = partition.FsOptions('ext2', 'ext2_vanilla', '', '')
+        obj = partition.FsOptions(fstype='ext2', fs_tag='ext2_vanilla')
+        obj = partition.FsOptions('fs', 'shortie', 'mkfs opts', 'mount opts')
         self.assertEqual('fs', obj.fstype)
+        self.assertEqual('shortie', obj.fs_tag)
         self.assertEqual('mkfs opts', obj.mkfs_flags)
         self.assertEqual('mount opts', obj.mount_options)
-        self.assertEqual('shortie', obj.fs_tag)
 
 
     def test__str__(self):