Did I find the right examples for you? yes no

All Samples(8)  |  Call(6)  |  Derive(0)  |  Import(2)

src/p/o/portage-funtoo-HEAD/pym/portage/tests/dep/test_get_operator.py   portage-funtoo(Download)
 
from portage.tests import TestCase
from portage.dep import get_operator
 
class GetOperator(TestCase):
					if slot:
						atom += ":" + slot
					result = get_operator(test[0] + atom)
					self.assertEqual(result, test[1],
						msg="get_operator(%s) != %s" % (test[0] + atom, test[1]))
 
		result = get_operator("sys-apps/portage")
		self.assertEqual(result, None)
 
		result = get_operator("=sys-apps/portage-2.1*")

src/p/o/portage-HEAD/pym/portage/tests/dep/test_get_operator.py   portage(Download)
 
from portage.tests import TestCase
from portage.dep import get_operator
 
class GetOperator(TestCase):
					if slot:
						atom += ":" + slot
					result = get_operator(test[0] + atom)
					self.assertEqual(result, test[1],
						msg="get_operator(%s) != %s" % (test[0] + atom, test[1]))
 
		result = get_operator("sys-apps/portage")
		self.assertEqual(result, None)
 
		result = get_operator("=sys-apps/portage-2.1*")