~ubuntu-branches/debian/sid/sqlalchemy/sid

« back to all changes in this revision

Viewing changes to test/ext/test_associationproxy.py

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski
  • Date: 2014-06-27 20:17:13 UTC
  • mfrom: (1.4.28)
  • Revision ID: package-import@ubuntu.com-20140627201713-g6p1kq8q1qenztrv
Tags: 0.9.6-1
* New upstream release
* Remove Python 3.X build tag files, thanks to Matthias Urlichs for the
  patch (closes: #747852)
* python-fdb isn't in the Debian archive yet so default dialect for firebird://
  URLs is changed to obsolete kinterbasdb, thanks to Russell Stuart for the
  patch (closes: #752145)

Show diffs side-by-side

added added

removed removed

Lines of Context:
254
254
            assert True
255
255
 
256
256
class DefaultTest(_CollectionOperations):
257
 
    def __init__(self, *args, **kw):
258
 
        super(DefaultTest, self).__init__(*args, **kw)
259
 
        self.collection_class = None
 
257
    collection_class = None
260
258
 
261
259
    def test_sequence_ops(self):
262
260
        self._test_sequence_ops()
263
261
 
264
262
 
265
263
class ListTest(_CollectionOperations):
266
 
    def __init__(self, *args, **kw):
267
 
        super(ListTest, self).__init__(*args, **kw)
268
 
        self.collection_class = list
 
264
    collection_class = list
269
265
 
270
266
    def test_sequence_ops(self):
271
267
        self._test_sequence_ops()
272
268
 
273
 
class CustomListTest(ListTest):
274
 
    def __init__(self, *args, **kw):
275
 
        super(CustomListTest, self).__init__(*args, **kw)
276
 
        self.collection_class = list
277
 
 
278
 
# No-can-do until ticket #213
279
 
class DictTest(_CollectionOperations):
280
 
    pass
281
 
 
282
 
class CustomDictTest(DictTest):
283
 
    def __init__(self, *args, **kw):
284
 
        super(DictTest, self).__init__(*args, **kw)
285
 
        self.collection_class = DictCollection
 
269
 
 
270
class CustomDictTest(_CollectionOperations):
 
271
    collection_class = DictCollection
286
272
 
287
273
    def test_mapping_ops(self):
288
274
        Parent, Child = self.Parent, self.Child
364
350
 
365
351
 
366
352
class SetTest(_CollectionOperations):
367
 
    def __init__(self, *args, **kw):
368
 
        super(SetTest, self).__init__(*args, **kw)
369
 
        self.collection_class = set
 
353
    collection_class = set
370
354
 
371
355
    def test_set_operations(self):
372
356
        Parent, Child = self.Parent, self.Child
582
566
 
583
567
 
584
568
class CustomSetTest(SetTest):
585
 
    def __init__(self, *args, **kw):
586
 
        super(CustomSetTest, self).__init__(*args, **kw)
587
 
        self.collection_class = SetCollection
 
569
    collection_class = SetCollection
588
570
 
589
571
class CustomObjectTest(_CollectionOperations):
590
 
    def __init__(self, *args, **kw):
591
 
        super(CustomObjectTest, self).__init__(*args, **kw)
592
 
        self.collection_class = ObjectCollection
 
572
    collection_class = ObjectCollection
593
573
 
594
574
    def test_basic(self):
595
575
        Parent, Child = self.Parent, self.Child