def test_open_player_with_title_mpv_escape_2(self): self.assertEqual( PlayerOutput._mpv_title_escape(r'\$> begins with escape code $$'), '$> begins with escape code $$')
def test_open_player_with_title_mpv_escape_15(self): self.assertEqual( PlayerOutput._mpv_title_escape(r'even and odd \$\$> $$ $\$> $$'), 'even and odd $$> $$$$ $$$> $$')
def test_open_player_with_title_mpv_escape_14(self): self.assertEqual(PlayerOutput._mpv_title_escape(r'odd and even $\$> $$ \$\$> $$'), 'odd and even $$$> $$ $$> $$')
def test_open_player_with_title_mpv_escape_10(self): self.assertEqual( PlayerOutput._mpv_title_escape(r'odd leading $$$\$> $$$ $>'), 'odd leading $$$$$$$> $$$ $>')
def test_open_player_with_title_mpv_escape_13(self): self.assertEqual( PlayerOutput._mpv_title_escape( r'$$$$$\$> odd leading beginning $$'), r'$$$$$$$$$$$> odd leading beginning $$')
def test_open_player_with_title_mpv_escape_5(self): self.assertEqual( PlayerOutput._mpv_title_escape( r'\$> \\$> showing "\$>" after escaping'), r'$> \$> showing "$>" after escaping')
def test_open_player_with_title_mpv_escape_8(self): self.assertEqual( PlayerOutput._mpv_title_escape( "not valid $$$$$$> not a valid way to escape $"), 'not valid $$$$$$$$$$$$> not a valid way to escape $$')
def test_open_player_with_title_mpv_escape_4(self): self.assertEqual(PlayerOutput._mpv_title_escape(r'\$> $$ begins with escape and double \$> $$ escape codes'), '$> $$ begins with escape and double $> $$ escape codes')
def test_open_player_with_title_mpv_escape_5(self): self.assertEqual(PlayerOutput._mpv_title_escape(r'\$> \\$> showing "\$>" after escaping'), r'$> \$> showing "$>" after escaping')
def test_open_player_with_title_mpv_escape_2(self): self.assertEqual(PlayerOutput._mpv_title_escape(r'\$> begins with escape code $$'), '$> begins with escape code $$')
def test_open_player_with_title_mpv_escape_3(self): self.assertEqual(PlayerOutput._mpv_title_escape(r'ends with escape code $$ \$>'), 'ends with escape code $$$$ $>')
def test_open_player_with_title_mpv_escape_1(self): self.assertEqual(PlayerOutput._mpv_title_escape("no escape $$ codes $"), 'no escape $$$$ codes $$')
def test_open_player_with_title_mpv_escape_16(self): self.assertEqual(PlayerOutput._mpv_title_escape(r'\$\$> $$$ \\$> $ showing "\$>" before escaping'), r'$$> $$$$$$ \$> $ showing "$>" before escaping')
def test_open_player_with_title_mpv_escape_15(self): self.assertEqual(PlayerOutput._mpv_title_escape(r'even and odd \$\$> $$ $\$> $$'), 'even and odd $$> $$$$ $$$> $$')
def test_open_player_with_title_mpv_escape_3(self): self.assertEqual( PlayerOutput._mpv_title_escape(r'ends with escape code $$ \$>'), 'ends with escape code $$$$ $>')
def test_open_player_with_title_mpv_escape_7(self): self.assertEqual(PlayerOutput._mpv_title_escape("$> also not a valid way to escape $"), '$$> also not a valid way to escape $$')
def test_open_player_with_title_mpv_escape_4(self): self.assertEqual( PlayerOutput._mpv_title_escape( r'\$> $$ begins with escape and double \$> $$ escape codes'), '$> $$ begins with escape and double $> $$ escape codes')
def test_open_player_with_title_mpv_escape_8(self): self.assertEqual(PlayerOutput._mpv_title_escape("not valid $$$$$$> not a valid way to escape $"), 'not valid $$$$$$$$$$$$> not a valid way to escape $$')
def test_open_player_with_title_mpv_escape_7(self): self.assertEqual( PlayerOutput._mpv_title_escape( "$> also not a valid way to escape $"), '$$> also not a valid way to escape $$')
def test_open_player_with_title_mpv_escape_9(self): self.assertEqual(PlayerOutput._mpv_title_escape(r'Multiple $> \$> $> $$ \$> $$> $> \$> $> $> \$> \$> \$>\$>$$$$'), 'Multiple $$> $> $> $$ $> $$> $> $> $> $> $> $> $>$>$$$$')
def test_open_player_with_title_mpv_escape_9(self): self.assertEqual( PlayerOutput._mpv_title_escape( r'Multiple $> \$> $> $$ \$> $$> $> \$> $> $> \$> \$> \$>\$>$$$$' ), 'Multiple $$> $> $> $$ $> $$> $> $> $> $> $> $> $>$>$$$$')
def test_open_player_with_title_mpv_escape_10(self): self.assertEqual(PlayerOutput._mpv_title_escape(r'odd leading $$$\$> $$$ $>'), 'odd leading $$$$$$$> $$$ $>')
def test_open_player_with_title_mpv_escape_11(self): self.assertEqual( PlayerOutput._mpv_title_escape(r'even leading $$\$\$> $$$$$'), 'even leading $$$$$$> $$$$$$$$$$' ) # will expand after \$> because eve)
def test_open_player_with_title_mpv_escape_11(self): self.assertEqual(PlayerOutput._mpv_title_escape(r'even leading $$\$\$> $$$$$'), 'even leading $$$$$$> $$$$$$$$$$') # will expand after \$> because eve)
def test_open_player_with_title_mpv_escape_14(self): self.assertEqual( PlayerOutput._mpv_title_escape(r'odd and even $\$> $$ \$\$> $$'), 'odd and even $$$> $$ $$> $$')
def test_open_player_with_title_mpv_escape_1(self): self.assertEqual( PlayerOutput._mpv_title_escape("no escape $$ codes $"), 'no escape $$$$ codes $$')
def test_open_player_with_title_mpv_escape_16(self): self.assertEqual( PlayerOutput._mpv_title_escape( r'\$\$> $$$ \\$> $ showing "\$>" before escaping'), r'$$> $$$$$$ \$> $ showing "$>" before escaping')
def test_open_player_with_title_mpv_escape_13(self): self.assertEqual(PlayerOutput._mpv_title_escape(r'$$$$$\$> odd leading beginning $$'), r'$$$$$$$$$$$> odd leading beginning $$')