Exemplo n.º 1
0
 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 $$')
Exemplo n.º 2
0
 def test_open_player_with_title_mpv_escape_15(self):
     self.assertEqual(
         PlayerOutput._mpv_title_escape(r'even and odd \$\$> $$ $\$> $$'),
         'even and odd $$> $$$$ $$$> $$')
Exemplo n.º 3
0
 def test_open_player_with_title_mpv_escape_14(self):
     self.assertEqual(PlayerOutput._mpv_title_escape(r'odd and even $\$> $$ \$\$> $$'),
                      'odd and even $$$> $$ $$> $$')
Exemplo n.º 4
0
 def test_open_player_with_title_mpv_escape_10(self):
     self.assertEqual(
         PlayerOutput._mpv_title_escape(r'odd leading $$$\$> $$$ $>'),
         'odd leading $$$$$$$> $$$ $>')
Exemplo n.º 5
0
 def test_open_player_with_title_mpv_escape_13(self):
     self.assertEqual(
         PlayerOutput._mpv_title_escape(
             r'$$$$$\$> odd leading beginning $$'),
         r'$$$$$$$$$$$> odd leading beginning $$')
Exemplo n.º 6
0
 def test_open_player_with_title_mpv_escape_5(self):
     self.assertEqual(
         PlayerOutput._mpv_title_escape(
             r'\$> \\$> showing "\$>" after escaping'),
         r'$> \$> showing "$>" after escaping')
Exemplo n.º 7
0
 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 $$')
Exemplo n.º 8
0
 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')
Exemplo n.º 9
0
 def test_open_player_with_title_mpv_escape_5(self):
     self.assertEqual(PlayerOutput._mpv_title_escape(r'\$> \\$> showing "\$>" after escaping'),
                      r'$> \$> showing "$>" after escaping')
Exemplo n.º 10
0
 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 $$')
Exemplo n.º 11
0
 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 $$$$ $>')
Exemplo n.º 12
0
 def test_open_player_with_title_mpv_escape_1(self):
     self.assertEqual(PlayerOutput._mpv_title_escape("no escape $$ codes $"),
                      'no escape $$$$ codes $$')
Exemplo n.º 13
0
 def test_open_player_with_title_mpv_escape_16(self):
     self.assertEqual(PlayerOutput._mpv_title_escape(r'\$\$> $$$ \\$> $ showing "\$>" before escaping'),
                      r'$$> $$$$$$ \$> $ showing "$>" before escaping')
Exemplo n.º 14
0
 def test_open_player_with_title_mpv_escape_15(self):
     self.assertEqual(PlayerOutput._mpv_title_escape(r'even and odd \$\$> $$ $\$> $$'),
                      'even and odd $$> $$$$ $$$> $$')
Exemplo n.º 15
0
 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 $$$$ $>')
Exemplo n.º 16
0
 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 $$')
Exemplo n.º 17
0
 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')
Exemplo n.º 18
0
 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 $$')
Exemplo n.º 19
0
 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 $$')
Exemplo n.º 20
0
 def test_open_player_with_title_mpv_escape_9(self):
     self.assertEqual(PlayerOutput._mpv_title_escape(r'Multiple $> \$> $> $$ \$> $$> $> \$> $> $> \$> \$> \$>\$>$$$$'),
                      'Multiple $$> $> $> $$ $> $$> $> $> $> $> $> $> $>$>$$$$')
Exemplo n.º 21
0
 def test_open_player_with_title_mpv_escape_9(self):
     self.assertEqual(
         PlayerOutput._mpv_title_escape(
             r'Multiple $> \$> $> $$ \$> $$> $> \$> $> $> \$> \$> \$>\$>$$$$'
         ), 'Multiple $$> $> $> $$ $> $$> $> $> $> $> $> $> $>$>$$$$')
Exemplo n.º 22
0
 def test_open_player_with_title_mpv_escape_10(self):
     self.assertEqual(PlayerOutput._mpv_title_escape(r'odd leading $$$\$> $$$ $>'),
                      'odd leading $$$$$$$> $$$ $>')
Exemplo n.º 23
0
 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)
Exemplo n.º 24
0
 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)
Exemplo n.º 25
0
 def test_open_player_with_title_mpv_escape_14(self):
     self.assertEqual(
         PlayerOutput._mpv_title_escape(r'odd and even $\$> $$ \$\$> $$'),
         'odd and even $$$> $$ $$> $$')
Exemplo n.º 26
0
 def test_open_player_with_title_mpv_escape_1(self):
     self.assertEqual(
         PlayerOutput._mpv_title_escape("no escape $$ codes $"),
         'no escape $$$$ codes $$')
Exemplo n.º 27
0
 def test_open_player_with_title_mpv_escape_16(self):
     self.assertEqual(
         PlayerOutput._mpv_title_escape(
             r'\$\$> $$$ \\$> $ showing "\$>" before escaping'),
         r'$$> $$$$$$ \$> $ showing "$>" before escaping')
Exemplo n.º 28
0
 def test_open_player_with_title_mpv_escape_13(self):
     self.assertEqual(PlayerOutput._mpv_title_escape(r'$$$$$\$> odd leading beginning $$'),
                      r'$$$$$$$$$$$> odd leading beginning $$')