Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(143)  |  Call(143)  |  Derive(0)  |  Import(0)

src/s/e/SEDFitting-HEAD/python/tools/units/_quantities/tests/test_dimensionality.py   SEDFitting(Download)
    def test_equality(self):
        self.assertTrue(meter == meter)
        self.assertTrue(joule == joule)
        self.assertFalse(meter == Joule)
        self.assertFalse(joule == Joule)
 
    def test_inequality(self):
        self.assertFalse(meter != meter)
        self.assertFalse(joule != joule)
        self.assertTrue(meter != Joule)
    def test_inequality(self):
        self.assertFalse(meter != meter)
        self.assertFalse(joule != joule)
        self.assertTrue(meter != Joule)
        self.assertTrue(joule != Joule)
 
    def test_copy(self):
        temp = meter.copy()
        self.assertTrue(temp is not meter)

src/e/g/egads-0.5.7/egads/third-party/quantities/tests/test_dimensionality.py   egads(Download)
    def test_equality(self):
        self.assertTrue(meter == meter)
        self.assertTrue(joule == joule)
        self.assertFalse(meter == Joule)
        self.assertFalse(joule == Joule)
 
    def test_inequality(self):
        self.assertFalse(meter != meter)
        self.assertFalse(joule != joule)
        self.assertTrue(meter != Joule)
    def test_inequality(self):
        self.assertFalse(meter != meter)
        self.assertFalse(joule != joule)
        self.assertTrue(meter != Joule)
        self.assertTrue(joule != Joule)
 
    def test_copy(self):
        temp = meter.copy()
        self.assertTrue(temp is not meter)

src/s/e/SEDFitting-HEAD/python/quantities/tests/test_dimensionality.py   SEDFitting(Download)
    def test_equality(self):
        self.assertTrue(meter == meter)
        self.assertTrue(joule == joule)
        self.assertFalse(meter == Joule)
        self.assertFalse(joule == Joule)
 
    def test_inequality(self):
        self.assertFalse(meter != meter)
        self.assertFalse(joule != joule)
        self.assertTrue(meter != Joule)
    def test_inequality(self):
        self.assertFalse(meter != meter)
        self.assertFalse(joule != joule)
        self.assertTrue(meter != Joule)
        self.assertTrue(joule != Joule)
 
    def test_copy(self):
        temp = meter.copy()
        self.assertTrue(temp is not meter)

src/q/u/quantities-0.10.1/quantities/tests/test_dimensionality.py   quantities(Download)
    def test_equality(self):
        self.assertTrue(meter == meter)
        self.assertTrue(joule == joule)
        self.assertFalse(meter == Joule)
        self.assertFalse(joule == Joule)
 
    def test_inequality(self):
        self.assertFalse(meter != meter)
        self.assertFalse(joule != joule)
        self.assertTrue(meter != Joule)
    def test_inequality(self):
        self.assertFalse(meter != meter)
        self.assertFalse(joule != joule)
        self.assertTrue(meter != Joule)
        self.assertTrue(joule != Joule)
 
    def test_copy(self):
        temp = meter.copy()
        self.assertTrue(temp is not meter)

src/p/y/python-quantities-HEAD/quantities/tests/test_dimensionality.py   python-quantities(Download)
    def test_equality(self):
        self.assertTrue(meter == meter)
        self.assertTrue(joule == joule)
        self.assertFalse(meter == Joule)
        self.assertFalse(joule == Joule)
 
    def test_inequality(self):
        self.assertFalse(meter != meter)
        self.assertFalse(joule != joule)
        self.assertTrue(meter != Joule)
    def test_inequality(self):
        self.assertFalse(meter != meter)
        self.assertFalse(joule != joule)
        self.assertTrue(meter != Joule)
        self.assertTrue(joule != Joule)
 
    def test_copy(self):
        temp = meter.copy()
        self.assertTrue(temp is not meter)

src/h/5/h5py-2.3.0/h5py/tests/test_file.py   h5py(Download)
        # No existing file; create a new file and open RW
        with File(fname) as f:
            self.assertTrue(f)
            self.assertEqual(f.mode, 'r+')
 
        # Existing readonly file; open read-only
        os.chmod(fname, stat.S_IREAD)
        try:
            with File(fname) as f:
                self.assertTrue(f)
    def test_create(self):
        """ Mode 'w' opens file in overwrite mode """
        fname = self.mktemp()
        fid = File(fname, 'w')
        self.assertTrue(fid)
    def test_stdio(self):
        """ Stdio driver is supported on posix """
        fid = File(self.mktemp(), 'w', driver='stdio')
        self.assertTrue(fid)
        self.assertEqual(fid.driver, 'stdio')
        fname = self.mktemp()
        with File(fname, 'w', driver='mpio', comm=MPI.COMM_WORLD) as f:
            self.assertTrue(f)
            self.assertEqual(f.driver, 'mpio')
 

src/h/5/h5py-HEAD/h5py/tests/test_file.py   h5py(Download)
        # No existing file; create a new file and open RW
        with File(fname) as f:
            self.assertTrue(f)
            self.assertEqual(f.mode, 'r+')
 
        # Existing readonly file; open read-only
        os.chmod(fname, stat.S_IREAD)
        try:
            with File(fname) as f:
                self.assertTrue(f)
    def test_create(self):
        """ Mode 'w' opens file in overwrite mode """
        fname = self.mktemp()
        fid = File(fname, 'w')
        self.assertTrue(fid)
    def test_stdio(self):
        """ Stdio driver is supported on posix """
        fid = File(self.mktemp(), 'w', driver='stdio')
        self.assertTrue(fid)
        self.assertEqual(fid.driver, 'stdio')
        fname = self.mktemp()
        with File(fname, 'w', driver='mpio', comm=MPI.COMM_WORLD) as f:
            self.assertTrue(f)
            self.assertEqual(f.driver, 'mpio')
 

src/l/e/learnpython.in.ua-HEAD/learnpython/tests/test_flasktesting.py   learnpython.in.ua(Download)
                self.assertStatus(response, 302)
                self.assertTrue(
                    response.headers['Location'].startswith(status_url)
                )
 

src/l/e/learnpython.in.ua-HEAD/learnpython/tests/test_webtest.py   learnpython.in.ua(Download)
            response = form.submit()
            self.assert200(response)
            self.assertTrue(response.pyquery('form > p.error'))
            self.assertTrue(response.pyquery('form > p.error-line'))
            response.mustcontain(
 
            elements = doc('#{0}'.format(name))
            self.assertTrue(elements)
            self.assertEqual(len(elements), 1)
 

src/p/r/praxes-HEAD/praxes/io/phynx/tests/test_group.py   praxes(Download)
    def test_getitem(self):
        a = self.f.create_group('a', 'Entry')
        self.assertEqual(a, self.f['a'])
        self.assertTrue(isinstance(self.f['a'], registry['Entry']))
 
    def test_contains(self):
        a = self.f.create_group('a')
        self.assertTrue('a' in self.f)
        self.assertFalse('z' in self.f)
 

  1 | 2  Next