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

All Samples(66)  |  Call(66)  |  Derive(0)  |  Import(0)
Check that the expression is false.

src/g/s/gsutil-3.42/gslib/tests/test_util.py   gsutil(Download)
    (g, m) = CompareVersions('3.37', '3.2')
    self.assertTrue(g)
    self.assertFalse(m)
    (g, m) = CompareVersions('7', '2')
    self.assertTrue(g)
    self.assertTrue(m)
    (g, m) = CompareVersions('3.32', '3.32pre')
    self.assertTrue(g)
    self.assertFalse(m)
    (g, m) = CompareVersions('3.32pre', '3.31')
    self.assertTrue(g)
    self.assertFalse(m)
    (g, m) = CompareVersions('3.4pre', '3.3pree')
    self.assertTrue(g)
    self.assertFalse(m)
 
    (g, m) = CompareVersions('3.2', '3.37')
    self.assertFalse(g)

src/g/s/gsutil-HEAD/gslib/tests/test_util.py   gsutil(Download)
    (g, m) = CompareVersions('3.37', '3.2')
    self.assertTrue(g)
    self.assertFalse(m)
    (g, m) = CompareVersions('7', '2')
    self.assertTrue(g)
    self.assertTrue(m)
    (g, m) = CompareVersions('3.32', '3.32pre')
    self.assertTrue(g)
    self.assertFalse(m)
    (g, m) = CompareVersions('3.32pre', '3.31')
    self.assertTrue(g)
    self.assertFalse(m)
    (g, m) = CompareVersions('3.4pre', '3.3pree')
    self.assertTrue(g)
    self.assertFalse(m)
 
    (g, m) = CompareVersions('3.2', '3.37')
    self.assertFalse(g)

src/g/s/gsutil-3.42/gslib/tests/test_naming.py   gsutil(Download)
      self.fail('Did not get expected CommandException')
    except CommandException:
      self.assertFalse(os.listdir(dst_dir))
    except Exception, e:
      self.fail('Unexpected exception raised')

src/g/s/gsutil-HEAD/gslib/tests/test_naming.py   gsutil(Download)
      self.fail('Did not get expected CommandException')
    except CommandException:
      self.assertFalse(os.listdir(dst_dir))
    except Exception, e:
      self.fail('Unexpected exception raised')

src/g/s/gsutil-3.42/gslib/tests/test_wildcard_iterator.py   gsutil(Download)
      for unused_ in self._test_wildcard_iterator(
          'badscheme://asdf').IterUris():
        self.assertFalse('Expected InvalidUriError not raised.')
    except InvalidUriError, e:
      # Expected behavior.
  def testContainsWildcard(self):
    """Tests ContainsWildcard call"""
    self.assertTrue(ContainsWildcard('a*.txt'))
    self.assertTrue(ContainsWildcard('a[0-9].txt'))
    self.assertFalse(ContainsWildcard('0-9.txt'))

src/g/s/gsutil-HEAD/gslib/tests/test_wildcard_iterator.py   gsutil(Download)
      for unused_ in self._test_wildcard_iterator(
          'badscheme://asdf').IterUris():
        self.assertFalse('Expected InvalidUriError not raised.')
    except InvalidUriError, e:
      # Expected behavior.
  def testContainsWildcard(self):
    """Tests ContainsWildcard call"""
    self.assertTrue(ContainsWildcard('a*.txt'))
    self.assertTrue(ContainsWildcard('a[0-9].txt'))
    self.assertFalse(ContainsWildcard('0-9.txt'))

src/g/s/gsutil-3.42/gslib/tests/test_plurality_checkable_iterator.py   gsutil(Download)
    pcit = PluralityCheckableIterator(it)
    self.assertTrue(pcit.is_empty())
    self.assertFalse(pcit.has_plurality())
    output_list = list(pcit)
    self.assertEqual(input_list, output_list)
    it = iter(input_list)
    pcit = PluralityCheckableIterator(it)
    self.assertFalse(pcit.is_empty())
    self.assertFalse(pcit.has_plurality())
    output_list = list(pcit)
    it = iter(input_list)
    pcit = PluralityCheckableIterator(it)
    self.assertFalse(pcit.is_empty())
    self.assertTrue(pcit.has_plurality())
    output_list = list(pcit)
    it = iter(input_list)
    pcit = PluralityCheckableIterator(it)
    self.assertFalse(pcit.is_empty())
    self.assertTrue(pcit.has_plurality())
    output_list = list(pcit)

src/g/s/gsutil-HEAD/gslib/tests/test_plurality_checkable_iterator.py   gsutil(Download)
    pcit = PluralityCheckableIterator(it)
    self.assertTrue(pcit.is_empty())
    self.assertFalse(pcit.has_plurality())
    output_list = list(pcit)
    self.assertEqual(input_list, output_list)
    it = iter(input_list)
    pcit = PluralityCheckableIterator(it)
    self.assertFalse(pcit.is_empty())
    self.assertFalse(pcit.has_plurality())
    output_list = list(pcit)
    it = iter(input_list)
    pcit = PluralityCheckableIterator(it)
    self.assertFalse(pcit.is_empty())
    self.assertTrue(pcit.has_plurality())
    output_list = list(pcit)
    it = iter(input_list)
    pcit = PluralityCheckableIterator(it)
    self.assertFalse(pcit.is_empty())
    self.assertTrue(pcit.has_plurality())
    output_list = list(pcit)

src/g/s/gsutil-3.42/gslib/tests/test_oauth2_client.py   gsutil(Download)
  def _RunGetAccessTokenTest(self):
    refresh_token = 'ref_token'
    access_token_1 = 'abc123'
 
    self.assertFalse(self.client.fetched_token)
    self.assertEquals(token_1, token_2)
    self.assertEquals(access_token_1, token_2.token)
    self.assertFalse(self.client.fetched_token)
 
    # Advance time past expiry time, and fetch another token.

src/g/s/gsutil-HEAD/gslib/tests/test_oauth2_client.py   gsutil(Download)
  def _RunGetAccessTokenTest(self):
    refresh_token = 'ref_token'
    access_token_1 = 'abc123'
 
    self.assertFalse(self.client.fetched_token)
    self.assertEquals(token_1, token_2)
    self.assertEquals(access_token_1, token_2.token)
    self.assertFalse(self.client.fetched_token)
 
    # Advance time past expiry time, and fetch another token.

  1 | 2  Next