mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
Use normal assertions in tests
This commit is contained in:
parent
3cf38a7f65
commit
42637011ac
1 changed files with 6 additions and 6 deletions
|
@ -350,16 +350,16 @@ def test_iglobpath():
|
|||
file.write('test\n')
|
||||
|
||||
paths = list(iglobpath(os.path.join(test_dir, '*.test'), ignore_case=False))
|
||||
yield assert_equal, len(paths), 100
|
||||
assert len(paths) == 100
|
||||
paths = list(iglobpath(os.path.join(test_dir, '*'), ignore_case=True))
|
||||
yield assert_equal, len(paths), 101
|
||||
assert len(paths) == 101
|
||||
|
||||
paths = list(iglobpath(os.path.join(test_dir, '*.test'), ignore_case=False))
|
||||
yield assert_equal, len(paths), 100
|
||||
yield assert_equal, paths, sorted(paths)
|
||||
assert len(paths) == 100
|
||||
assert paths == sorted(paths)
|
||||
paths = list(iglobpath(os.path.join(test_dir, '*'), ignore_case=True))
|
||||
yield assert_equal, len(paths), 101
|
||||
yield assert_equal, paths, sorted(paths)
|
||||
assert len(paths) == 101
|
||||
assert paths == sorted(paths)
|
||||
|
||||
|
||||
def test_is_int():
|
||||
|
|
Loading…
Add table
Reference in a new issue