Beispiel #1
0
	def runTest(self):
		pass


class get_or_create(Fixture):
	def runTest(self):
		pass


class rollback(Fixture):
	def runTest(self):
		pass


if __name__ == "__main__":
	alltests = (
		all,
		#filter,
		# exclude,
		# get,
		# create,
		# get_or_create,
		
		
		#! implement
		# rollback,
		
	)

	runtests(tests=alltests, verbosity=3)
				cars.id, cars.name
			from
				cars left outer join brands on cars.brand_id = brands.id
			where
				brands.id = 3
				or cars.name in ('Bulli')
		"""

		db.cursor.execute(select_stmt)

		# Finally the right results for this type of relation!
		self.assert_(db.cursor.fetchall() == [(1, "Bulli"), (5, "A8")])

		# Now test the QuerySet
		self.assert_(
			list(Car.objects.filter(Q(brand__id=3) | Q(name__in=['Bulli'])))
			== [bulli, a8]
		)



if __name__ == "__main__":
	alltests = (
		# TestFkCrossJoin,
		# TestFkInnerJoin,
		TestFkOuterJoin,
	)


	runtests(alltests, verbosity=3)