Skip to content

Commit c9fe50e

Browse files
author
Roberto De Ioris
committed
added unit test for clipboard
1 parent d628bb7 commit c9fe50e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/test_clipboard.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import unittest
2+
import unreal_engine as ue
3+
4+
class TestClipboard(unittest.TestCase):
5+
6+
def test_copy_and_paste(self):
7+
ue.clipboard_copy('Hello from python unit test')
8+
self.assertEqual(ue.clipboard_paste(), 'Hello from python unit test')
9+
10+
def test_copy_and_paste_red_light(self):
11+
ue.clipboard_copy('Hello from red light test')
12+
self.assertNotEqual(ue.clipboard_paste(), 'Hello from python unit test')

0 commit comments

Comments
 (0)