~ubuntu-branches/debian/jessie/sqlalchemy/jessie

« back to all changes in this revision

Viewing changes to test/orm/inheritance/test_manytomany.py

  • Committer: Bazaar Package Importer
  • Author(s): Piotr Ożarowski
  • Date: 2011-08-01 23:18:16 UTC
  • mfrom: (1.4.15 upstream) (16.1.14 experimental)
  • Revision ID: james.westby@ubuntu.com-20110801231816-6lx797pi3q1fpqst
Tags: 0.7.2-1
* New upstream release
* Bump minimum required python-mako version to 0.4.1 (closes: 635898)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from sqlalchemy.test.testing import eq_
 
1
from test.lib.testing import eq_
2
2
from sqlalchemy import *
3
3
from sqlalchemy.orm import *
4
4
 
5
 
from sqlalchemy.test import testing
6
 
from test.orm import _base
7
 
 
8
 
 
9
 
class InheritTest(_base.MappedTest):
 
5
from test.lib import testing
 
6
from test.lib import fixtures
 
7
 
 
8
 
 
9
class InheritTest(fixtures.MappedTest):
10
10
    """deals with inheritance and many-to-many relationships"""
11
11
    @classmethod
12
12
    def define_tables(cls, metadata):
66
66
        sess.flush()
67
67
        # TODO: put an assertion
68
68
 
69
 
class InheritTest2(_base.MappedTest):
 
69
class InheritTest2(fixtures.MappedTest):
70
70
    """deals with inheritance and many-to-many relationships"""
71
71
    @classmethod
72
72
    def define_tables(cls, metadata):
140
140
            {'id':b.id, 'data':'barfoo', 'foos':(Foo, [{'id':f1.id,'data':'subfoo1'}, {'id':f2.id,'data':'subfoo2'}])},
141
141
            )
142
142
 
143
 
class InheritTest3(_base.MappedTest):
 
143
class InheritTest3(fixtures.MappedTest):
144
144
    """deals with inheritance and many-to-many relationships"""
145
145
    @classmethod
146
146
    def define_tables(cls, metadata):