Esempio n. 1
0
 def test_file_hash(self):
     expected_hash = "c65865c6eac504bddb6bd3f8ddeb18bd49b53c37"
     h1 = pabot._file_hash([
         "datasources:7d48f683f47bbd7092a6bde4e1cbefaa79653d1c",
         "commandlineoptions:97d170e1550eee4afc0af065b78cda302a97674c",
         "suitesfrom:no-suites-from-option",
         "file:"+expected_hash,
         "Fixtures.Suite One",
         "Fixtures.Suite Second",
         "Fixtures.Suite&(Specia|)Chars"
     ])
     self.assertEqual(h1, expected_hash)
     h2 = pabot._file_hash([
         "datasources:7d48f683f47bbd7092a6bde4e1cbefaa79653d1c",
         "commandlineoptions:97d170e1550eee4afc0af065b78cda302a97674c",
         "suitesfrom:no-suites-from-option",
         "file:"+expected_hash,
         "Fixtures.Suite Second",
         "Fixtures.Suite One",
         "Fixtures.Suite&(Specia|)Chars"
     ])
     self.assertEqual(h1, h2)
     h3 = pabot._file_hash([
         "datasources:7d48f683f47bbd7092a6bde4e1cbefaa79653d1c",
         "commandlineoptions:97d170e1550eee4afc0af065b78cda302a97674c",
         "suitesfrom:no-suites-from-option",
         "file:whatever",
         "Fixtures.Suite Second",
         "Fixtures.New Suite",
         "Fixtures.Suite One",
         "Fixtures.Suite&(Specia|)Chars"
     ])
     self.assertNotEqual(h1, h3)
Esempio n. 2
0
 def test_file_hash(self):
     expected_hash = "7a3a18da48c46e2eac7a1262882536816e248750"
     h1 = pabot._file_hash([
         "datasources:38958c4ff3b75985be2e1a16e2e851742c44cea5",
         "commandlineoptions:97d170e1550eee4afc0af065b78cda302a97674c",
         "suitesfrom:no-suites-from-option", "file:" + expected_hash,
         "--suite Fixtures.Suite One", "--suite Fixtures.Suite Second",
         "--suite Fixtures.Suite&(Specia|)Chars"
     ])
     self.assertEqual(h1, expected_hash)
     h2 = pabot._file_hash([
         "datasources:38958c4ff3b75985be2e1a16e2e851742c44cea5",
         "commandlineoptions:97d170e1550eee4afc0af065b78cda302a97674c",
         "suitesfrom:no-suites-from-option", "file:" + expected_hash,
         "--suite Fixtures.Suite Second", "--suite Fixtures.Suite One",
         "--suite Fixtures.Suite&(Specia|)Chars"
     ])
     self.assertEqual(h1, h2)
     h3 = pabot._file_hash([
         "datasources:38958c4ff3b75985be2e1a16e2e851742c44cea5",
         "commandlineoptions:97d170e1550eee4afc0af065b78cda302a97674c",
         "suitesfrom:no-suites-from-option", "file:whatever",
         "--suite Fixtures.Suite Second", "--suite Fixtures.New Suite",
         "--suite Fixtures.Suite One",
         "--suite Fixtures.Suite&(Specia|)Chars"
     ])
     self.assertNotEqual(h1, h3)
Esempio n. 3
0
 def test_file_hash(self):
     h1 = pabot._file_hash([
         "datasources:" + datasource_hash,
         "commandlineoptions:97d170e1550eee4afc0af065b78cda302a97674c",
         "suitesfrom:no-suites-from-option", "file:" + file_hash
     ] + self._all_with_suites)
     self.assertEqual(h1, file_hash)
     h2 = pabot._file_hash([
         "datasources:" + datasource_hash,
         "commandlineoptions:97d170e1550eee4afc0af065b78cda302a97674c",
         "suitesfrom:no-suites-from-option", "file:" + file_hash
     ] + list(reversed(self._all_with_suites)))
     self.assertEqual(h1, h2)
     h3 = pabot._file_hash([
         "datasources:" + datasource_hash,
         "commandlineoptions:97d170e1550eee4afc0af065b78cda302a97674c",
         "suitesfrom:no-suites-from-option", "file:whatever"
     ] + self._all_with_suites + ["--suite Fixtures.New Suite"])
     self.assertNotEqual(h1, h3)
Esempio n. 4
0
 def test_file_hash(self):
     expected_hash = "d16c45532ef9a1b7ddfdc1498df20c66fa19d10f"
     h1 = pabot._file_hash([
         "datasources:195524bdb66da94d08decc859867c5fb0b6cf95b",
         "commandlineoptions:97d170e1550eee4afc0af065b78cda302a97674c",
         "suitesfrom:no-suites-from-option", "file:" + expected_hash
     ] + self._all_with_suites)
     self.assertEqual(h1, expected_hash)
     h2 = pabot._file_hash([
         "datasources:195524bdb66da94d08decc859867c5fb0b6cf95b",
         "commandlineoptions:97d170e1550eee4afc0af065b78cda302a97674c",
         "suitesfrom:no-suites-from-option", "file:" + expected_hash
     ] + list(reversed(self._all_with_suites)))
     self.assertEqual(h1, h2)
     h3 = pabot._file_hash([
         "datasources:195524bdb66da94d08decc859867c5fb0b6cf95b",
         "commandlineoptions:97d170e1550eee4afc0af065b78cda302a97674c",
         "suitesfrom:no-suites-from-option", "file:whatever"
     ] + self._all_with_suites + ["--suite Fixtures.New Suite"])
     self.assertNotEqual(h1, h3)
Esempio n. 5
0
 def test_file_hash(self):
     expected_hash = "dfbbcc2e769bbaba4f27715359689d07bdff987f"
     h1 = pabot._file_hash([
         "datasources:ab91eabfa9603fdcb718d17b5ea7069d4cc9d05a",
         "commandlineoptions:97d170e1550eee4afc0af065b78cda302a97674c",
         "suitesfrom:no-suites-from-option",
         "file:"+expected_hash] + self._all_with_suites)
     self.assertEqual(h1, expected_hash)
     h2 = pabot._file_hash([
         "datasources:ab91eabfa9603fdcb718d17b5ea7069d4cc9d05a",
         "commandlineoptions:97d170e1550eee4afc0af065b78cda302a97674c",
         "suitesfrom:no-suites-from-option",
         "file:"+expected_hash] + list(reversed(self._all_with_suites)))
     self.assertEqual(h1, h2)
     h3 = pabot._file_hash([
         "datasources:ab91eabfa9603fdcb718d17b5ea7069d4cc9d05a",
         "commandlineoptions:97d170e1550eee4afc0af065b78cda302a97674c",
         "suitesfrom:no-suites-from-option",
         "file:whatever"] + self._all_with_suites + ["--suite Fixtures.New Suite"])
     self.assertNotEqual(h1, h3)
Esempio n. 6
0
 def test_file_hash(self):
     expected_hash = "075734d97edbd5237f241dfd3f18177d2c80b3be"
     h1 = pabot._file_hash([
         "datasources:4a1e9103a8b3239b18b63ebb8775b1ab2225f4b6",
         "commandlineoptions:97d170e1550eee4afc0af065b78cda302a97674c",
         "suitesfrom:no-suites-from-option",
         "file:"+expected_hash] + self._all_with_suites)
     self.assertEqual(h1, expected_hash)
     h2 = pabot._file_hash([
         "datasources:4a1e9103a8b3239b18b63ebb8775b1ab2225f4b6",
         "commandlineoptions:97d170e1550eee4afc0af065b78cda302a97674c",
         "suitesfrom:no-suites-from-option",
         "file:"+expected_hash] + list(reversed(self._all_with_suites)))
     self.assertEqual(h1, h2)
     h3 = pabot._file_hash([
         "datasources:4a1e9103a8b3239b18b63ebb8775b1ab2225f4b6",
         "commandlineoptions:97d170e1550eee4afc0af065b78cda302a97674c",
         "suitesfrom:no-suites-from-option",
         "file:whatever"] + self._all_with_suites + ["--suite Fixtures.New Suite"])
     self.assertNotEqual(h1, h3)
Esempio n. 7
0
 def test_file_hash(self):
     expected_hash = "075734d97edbd5237f241dfd3f18177d2c80b3be"
     h1 = pabot._file_hash([
         "datasources:4a1e9103a8b3239b18b63ebb8775b1ab2225f4b6",
         "commandlineoptions:97d170e1550eee4afc0af065b78cda302a97674c",
         "suitesfrom:no-suites-from-option",
         "file:"+expected_hash] + self._all_with_suites)
     self.assertEqual(h1, expected_hash)
     h2 = pabot._file_hash([
         "datasources:4a1e9103a8b3239b18b63ebb8775b1ab2225f4b6",
         "commandlineoptions:97d170e1550eee4afc0af065b78cda302a97674c",
         "suitesfrom:no-suites-from-option",
         "file:"+expected_hash] + list(reversed(self._all_with_suites)))
     self.assertEqual(h1, h2)
     h3 = pabot._file_hash([
         "datasources:4a1e9103a8b3239b18b63ebb8775b1ab2225f4b6",
         "commandlineoptions:97d170e1550eee4afc0af065b78cda302a97674c",
         "suitesfrom:no-suites-from-option",
         "file:whatever"] + self._all_with_suites + ["--suite Fixtures.New Suite"])
     self.assertNotEqual(h1, h3)
Esempio n. 8
0
 def test_file_hash(self):
     expected_hash = "ae4facc1b87ef63a25c59440452406d1994b49e2"
     h1 = pabot._file_hash([
         "datasources:7ae14c39821f22787f9aafd78ff5a5a1111b84ec",
         "commandlineoptions:97d170e1550eee4afc0af065b78cda302a97674c",
         "suitesfrom:no-suites-from-option", "file:" + expected_hash
     ] + self._all_with_suites)
     self.assertEqual(h1, expected_hash)
     h2 = pabot._file_hash([
         "datasources:7ae14c39821f22787f9aafd78ff5a5a1111b84ec",
         "commandlineoptions:97d170e1550eee4afc0af065b78cda302a97674c",
         "suitesfrom:no-suites-from-option", "file:" + expected_hash
     ] + list(reversed(self._all_with_suites)))
     self.assertEqual(h1, h2)
     h3 = pabot._file_hash([
         "datasources:7ae14c39821f22787f9aafd78ff5a5a1111b84ec",
         "commandlineoptions:97d170e1550eee4afc0af065b78cda302a97674c",
         "suitesfrom:no-suites-from-option", "file:whatever"
     ] + self._all_with_suites + ["--suite Fixtures.New Suite"])
     self.assertNotEqual(h1, h3)