diff options
| author | Jason Kirtland <jek@discorporate.us> | 2008-01-12 22:03:42 +0000 |
|---|---|---|
| committer | Jason Kirtland <jek@discorporate.us> | 2008-01-12 22:03:42 +0000 |
| commit | 17d3c8764e020379e54053bca0b0a2bc71d48aa0 (patch) | |
| tree | 0b46f1ddc57292b8f5bfbc28ab1679230f63e426 /test/base/utils.py | |
| parent | c194962019d1bc7322e20b82c33aa1bab3bc2a28 (diff) | |
| download | sqlalchemy-17d3c8764e020379e54053bca0b0a2bc71d48aa0.tar.gz | |
- testbase is gone, replaced by testenv
- Importing testenv has no side effects- explicit functions provide similar behavior to the old immediate behavior of testbase
- testing.db has the configured db
- Fixed up the perf/* scripts
Diffstat (limited to 'test/base/utils.py')
| -rw-r--r-- | test/base/utils.py | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/test/base/utils.py b/test/base/utils.py index 6e1b58c4a..5ebc33921 100644 --- a/test/base/utils.py +++ b/test/base/utils.py @@ -1,4 +1,4 @@ -import testbase +import testenv; testenv.configure_for_tests() import unittest from sqlalchemy import util, sql, exceptions from testlib import * @@ -35,18 +35,18 @@ class OrderedDictTest(PersistTest): self.assert_(o.keys() == ['a', 'b', 'c', 'd', 'e', 'f']) self.assert_(o.values() == [1, 2, 3, 4, 5, 6]) -class OrderedSetTest(PersistTest): +class OrderedSetTest(PersistTest): def test_mutators_against_iter(self): # testing a set modified against an iterator o = util.OrderedSet([3,2, 4, 5]) - - self.assertEquals(o.difference(iter([3,4])), util.OrderedSet([2,5])) - self.assertEquals(o.intersection(iter([3,4, 6])), util.OrderedSet([3, 4])) + self.assertEquals(o.difference(iter([3,4])), + util.OrderedSet([2,5])) + self.assertEquals(o.intersection(iter([3,4, 6])), + util.OrderedSet([3, 4])) + self.assertEquals(o.union(iter([3,4, 6])), + util.OrderedSet([2, 3, 4, 5, 6])) - self.assertEquals(o.union(iter([3,4, 6])), util.OrderedSet([2, 3, 4, 5, 6])) - - class ColumnCollectionTest(PersistTest): def test_in(self): cc = sql.ColumnCollection() @@ -119,7 +119,6 @@ class EqOverride(object): return self.value != other.value else: return True - class HashEqOverride(object): def __init__(self, value=None): self.value = value @@ -307,4 +306,4 @@ class DictlikeIteritemsTest(unittest.TestCase): if __name__ == "__main__": - testbase.main() + testenv.main() |
