summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_commands.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py
index 67c47d0..f003f03 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -121,3 +121,17 @@ Head analysis:
\t[':1']\trefs/heads/master
Merges:
""")
+
+
+class TestFastImport(ExternalBase):
+
+ def test_empty(self):
+ self.build_tree_contents([('empty.fi', "")])
+ self.make_branch_and_tree("br")
+ self.assertEquals("", self.run_bzr("fast-import empty.fi br")[0])
+
+ def test_file(self):
+ tree = self.make_branch_and_tree("br")
+ self.build_tree_contents([('file.fi', simple_fast_import_stream)])
+ data = self.run_bzr("fast-import file.fi br")[0]
+ self.assertEquals(3, tree.branch.revno())