Skip to content

Commit

Permalink
StringProcessingTest: Name methods appropriately
Browse files Browse the repository at this point in the history
Those methods are better for our standards.
  • Loading branch information
sils committed Mar 18, 2015
1 parent d92e143 commit a50549a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions coalib/tests/parsing/StringProcessingTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ def setUp(self):
r"abc;a;;;;;asc"]

# Set up test dependent variables.
self.setUp_search_for()
self.setUp_split()
self.setUp_unescaped_split()
self.setUp_search_in_between()
self.setUp_unescaped_search_in_between()
self.set_up_search_for()
self.set_up_split()
self.set_up_unescaped_split()
self.set_up_search_in_between()
self.set_up_unescaped_search_in_between()

def setUp_search_for(self):
def set_up_search_for(self):
# Match either "out1" or "out2".
self.test_search_for_pattern = "out1|out2"
# These are the expected results for the zero-group of the
Expand Down Expand Up @@ -108,7 +108,7 @@ def setUp_search_for(self):
self.test_search_for_max_match_expected_master_result = (
self.test_search_for_expected_results)

def setUp_split(self):
def set_up_split(self):
self.test_split_pattern = "'"
self.test_split_expected_results = [
[r"out1 ", r"escaped-escape: \\ ", r" out2"],
Expand Down Expand Up @@ -164,7 +164,7 @@ def setUp_split(self):
[2 * self.bs],
[r"abc", r"a", r"asc"]]

def setUp_unescaped_split(self):
def set_up_unescaped_split(self):
self.test_unescaped_split_pattern = "'"
self.test_unescaped_split_expected_results = [
[r"out1 ", r"escaped-escape: \\ ", r" out2"],
Expand Down Expand Up @@ -218,7 +218,7 @@ def setUp_unescaped_split(self):
[2 * self.bs],
[r"abc", r"a", r"asc"]]

def setUp_search_in_between(self):
def set_up_search_in_between(self):
self.test_search_in_between_pattern = "'"
self.test_search_in_between_expected_results = [
[r"escaped-escape: \\ "],
Expand Down Expand Up @@ -267,7 +267,7 @@ def setUp_search_in_between(self):
[],
[r"a"]]

def setUp_unescaped_search_in_between(self):
def set_up_unescaped_search_in_between(self):
self.test_unescaped_search_in_between_pattern = "'"
self.test_unescaped_search_in_between_expected_results = [
[r"escaped-escape: \\ "],
Expand Down

1 comment on commit a50549a

@Makman2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack

Please sign in to comment.