Python timeit.reindent() Examples
The following are 20
code examples of timeit.reindent().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
timeit
, or try the search function
.
Example #1
Source File: test_timeit.py From ironpython3 with Apache License 2.0 | 5 votes |
def test_reindent_multi_empty(self): self.assertEqual(timeit.reindent("\n\n", 0), "\n\n") self.assertEqual(timeit.reindent("\n\n", 4), "\n \n ")
Example #2
Source File: test_timeit.py From android_universal with MIT License | 5 votes |
def test_reindent_multi(self): self.assertEqual(timeit.reindent( "print()\npass\nbreak", 0), "print()\npass\nbreak") self.assertEqual(timeit.reindent( "print()\npass\nbreak", 4), "print()\n pass\n break")
Example #3
Source File: test_timeit.py From android_universal with MIT License | 5 votes |
def test_reindent_multi_empty(self): self.assertEqual(timeit.reindent("\n\n", 0), "\n\n") self.assertEqual(timeit.reindent("\n\n", 4), "\n \n ")
Example #4
Source File: test_timeit.py From android_universal with MIT License | 5 votes |
def test_reindent_single(self): self.assertEqual(timeit.reindent("pass", 0), "pass") self.assertEqual(timeit.reindent("pass", 4), "pass")
Example #5
Source File: test_timeit.py From android_universal with MIT License | 5 votes |
def test_reindent_empty(self): self.assertEqual(timeit.reindent("", 0), "") self.assertEqual(timeit.reindent("", 4), "")
Example #6
Source File: test_timeit.py From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 | 5 votes |
def test_reindent_multi(self): self.assertEqual(timeit.reindent( "print()\npass\nbreak", 0), "print()\npass\nbreak") self.assertEqual(timeit.reindent( "print()\npass\nbreak", 4), "print()\n pass\n break")
Example #7
Source File: test_timeit.py From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 | 5 votes |
def test_reindent_multi_empty(self): self.assertEqual(timeit.reindent("\n\n", 0), "\n\n") self.assertEqual(timeit.reindent("\n\n", 4), "\n \n ")
Example #8
Source File: test_timeit.py From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 | 5 votes |
def test_reindent_single(self): self.assertEqual(timeit.reindent("pass", 0), "pass") self.assertEqual(timeit.reindent("pass", 4), "pass")
Example #9
Source File: test_timeit.py From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 | 5 votes |
def test_reindent_empty(self): self.assertEqual(timeit.reindent("", 0), "") self.assertEqual(timeit.reindent("", 4), "")
Example #10
Source File: test_timeit.py From ironpython3 with Apache License 2.0 | 5 votes |
def test_reindent_multi(self): self.assertEqual(timeit.reindent( "print()\npass\nbreak", 0), "print()\npass\nbreak") self.assertEqual(timeit.reindent( "print()\npass\nbreak", 4), "print()\n pass\n break")
Example #11
Source File: test_timeit.py From ironpython2 with Apache License 2.0 | 5 votes |
def test_reindent_empty(self): self.assertEqual(timeit.reindent("", 0), "") self.assertEqual(timeit.reindent("", 4), "")
Example #12
Source File: test_timeit.py From ironpython3 with Apache License 2.0 | 5 votes |
def test_reindent_single(self): self.assertEqual(timeit.reindent("pass", 0), "pass") self.assertEqual(timeit.reindent("pass", 4), "pass")
Example #13
Source File: test_timeit.py From ironpython3 with Apache License 2.0 | 5 votes |
def test_reindent_empty(self): self.assertEqual(timeit.reindent("", 0), "") self.assertEqual(timeit.reindent("", 4), "")
Example #14
Source File: test_timeit.py From Fluid-Designer with GNU General Public License v3.0 | 5 votes |
def test_reindent_multi(self): self.assertEqual(timeit.reindent( "print()\npass\nbreak", 0), "print()\npass\nbreak") self.assertEqual(timeit.reindent( "print()\npass\nbreak", 4), "print()\n pass\n break")
Example #15
Source File: test_timeit.py From Fluid-Designer with GNU General Public License v3.0 | 5 votes |
def test_reindent_multi_empty(self): self.assertEqual(timeit.reindent("\n\n", 0), "\n\n") self.assertEqual(timeit.reindent("\n\n", 4), "\n \n ")
Example #16
Source File: test_timeit.py From Fluid-Designer with GNU General Public License v3.0 | 5 votes |
def test_reindent_single(self): self.assertEqual(timeit.reindent("pass", 0), "pass") self.assertEqual(timeit.reindent("pass", 4), "pass")
Example #17
Source File: test_timeit.py From Fluid-Designer with GNU General Public License v3.0 | 5 votes |
def test_reindent_empty(self): self.assertEqual(timeit.reindent("", 0), "") self.assertEqual(timeit.reindent("", 4), "")
Example #18
Source File: test_timeit.py From ironpython2 with Apache License 2.0 | 5 votes |
def test_reindent_multi(self): self.assertEqual(timeit.reindent( "print()\npass\nbreak", 0), "print()\npass\nbreak") self.assertEqual(timeit.reindent( "print()\npass\nbreak", 4), "print()\n pass\n break")
Example #19
Source File: test_timeit.py From ironpython2 with Apache License 2.0 | 5 votes |
def test_reindent_multi_empty(self): self.assertEqual(timeit.reindent("\n\n", 0), "\n\n") self.assertEqual(timeit.reindent("\n\n", 4), "\n \n ")
Example #20
Source File: test_timeit.py From ironpython2 with Apache License 2.0 | 5 votes |
def test_reindent_single(self): self.assertEqual(timeit.reindent("pass", 0), "pass") self.assertEqual(timeit.reindent("pass", 4), "pass")