+ assert_equal true, File.exist?(large_picture_path)
+ end
+
+ def test_import_handles_bz2
+ trace = create(:trace, :fixture => "c")
+
+ trace.import
+
+ assert_equal 1, trace.size
+ end
+
+ def test_import_handles_plain
+ trace = create(:trace, :fixture => "a")
+
+ trace.import
+
+ assert_equal 1, trace.size
+ end
+
+ def test_import_handles_plain_with_bom
+ trace = create(:trace, :fixture => "b")
+
+ trace.import
+
+ assert_equal 1, trace.size
+ end
+
+ def test_import_handles_gz
+ trace = create(:trace, :fixture => "d")
+
+ trace.import
+
+ assert_equal 1, trace.size
+ end
+
+ def test_import_handles_zip
+ trace = create(:trace, :fixture => "f")
+
+ trace.import
+
+ assert_equal 2, trace.size
+ end
+
+ def test_import_handles_tar
+ trace = create(:trace, :fixture => "g")
+
+ trace.import
+
+ assert_equal 2, trace.size
+ end
+
+ def test_import_handles_tar_gz
+ trace = create(:trace, :fixture => "h")
+
+ trace.import
+
+ assert_equal 2, trace.size
+ end
+
+ def test_import_handles_tar_bz2
+ trace = create(:trace, :fixture => "i")
+
+ trace.import
+
+ assert_equal 2, trace.size