Skip to content
Snippets Groups Projects
Commit 3bceaf8f authored by Jack Nagel's avatar Jack Nagel
Browse files

Add test for differing module and import name

parent 5b5361b9
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,14 @@ class LanguageModuleDependencyTests < Test::Unit::TestCase
assert !y.eql?(x)
end
def test_differing_module_and_import_name
mod_name = "foo"
import_name = "bar"
l = LanguageModuleDependency.new(:python, mod_name, import_name)
assert l.message.include?(mod_name)
assert l.the_test.one? { |c| c.include?(import_name) }
end
def test_bad_perl_deps
assert_deps_fail "notapackage" => :perl
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment