Format tests with black
JIRA: COMPOSE-4086 Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
parent
ef33d00f5b
commit
38142d30ba
51 changed files with 13767 additions and 9180 deletions
|
|
@ -32,7 +32,6 @@ class TestHeadTailSplit(unittest.TestCase):
|
|||
|
||||
|
||||
class TestPathMatch(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.pm = PathMatch()
|
||||
|
||||
|
|
@ -56,7 +55,9 @@ class TestPathMatch(unittest.TestCase):
|
|||
self.pm["/*/*"] = "/star/star1"
|
||||
self.assertEqual(list(self.pm._patterns.keys()), ["*"])
|
||||
self.assertEqual(list(self.pm._patterns["*"]._final_patterns.keys()), ["*"])
|
||||
self.assertEqual(self.pm._patterns["*"]._final_patterns["*"]._values, ["/star/star1"])
|
||||
self.assertEqual(
|
||||
self.pm._patterns["*"]._final_patterns["*"]._values, ["/star/star1"]
|
||||
)
|
||||
self.assertEqual(sorted(self.pm["/lib/asd"]), ["/star/star1"])
|
||||
|
||||
self.pm["/*"] = "/star2"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue