Permalink
Browse files

Remove fudge

  • Loading branch information...
1 parent 9eaf722 commit db3a9c41aa5783f535103e3252c4e122d7a9247f @mattbasta committed Oct 24, 2013
Showing with 5 additions and 6 deletions.
  1. +0 −1 requirements.txt
  2. +5 −5 tests/test_submain.py
View
@@ -8,6 +8,5 @@ mock==1.0b1
ndg-httpsclient==0.3.2
pyasn1==0.1.7
pyOpenSSL==0.13
-fudge==1.0.3
requests==1.2.3
PIL==1.1.7
View
@@ -1,6 +1,5 @@
import time
-import fudge
from mock import patch
from nose.tools import eq_
@@ -47,14 +46,15 @@ def test_prepare_package_bad_file():
assert err.failed()
-@fudge.patch("appvalidator.submain.detect_webapp")
+@patch("appvalidator.submain.detect_webapp")
def test_prepare_package_webapp(fake_webapp_validator):
- fake_webapp_validator.expects_call().with_arg_count(2)
-
err = ErrorBundle()
- submain.prepare_package(err, "tests/resources/main/mozball.webapp")
+ package = "tests/resources/main/mozball.webapp"
+ submain.prepare_package(err, package)
assert not err.failed()
+ fake_webapp_validator.assert_called_with(err, package)
+
class MockTestcases:

0 comments on commit db3a9c4

Please sign in to comment.