diff options
| author | Charles Chen <chaochichen@gmail.com> | 2014-07-22 14:44:38 -0700 | 
|---|---|---|
| committer | Charles Chen <chaochichen@gmail.com> | 2014-07-22 14:44:38 -0700 | 
| commit | c4f731262dbee921147b94aac5035b5d9ec75502 (patch) | |
| tree | 98a93f1de2b7c71a8e25fa072515b4efc5f43ea1 /test/helper.py | |
| parent | 07cc63f386c6afe253b7707631663072d2fb8789 (diff) | |
| parent | e42a692f003eabdb1efad7b9f4b10ce97c712d32 (diff) | |
Merge remote-tracking branch 'upstream/master' into MLB
Conflicts:
	youtube_dl/extractor/mlb.py
Diffstat (limited to 'test/helper.py')
| -rw-r--r-- | test/helper.py | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/test/helper.py b/test/helper.py index 230d2bd67..84b16f770 100644 --- a/test/helper.py +++ b/test/helper.py @@ -148,3 +148,10 @@ def assertRegexpMatches(self, text, regexp, msg=None):              else:                  msg = note + ', ' + msg              self.assertTrue(m, msg) + + +def assertGreaterEqual(self, got, expected, msg=None): +    if not (got >= expected): +        if msg is None: +            msg = '%r not greater than or equal to %r' % (got, expected) +        self.assertTrue(got >= expected, msg) | 
