File: test_parse_reply.py

package info (click to toggle)
trash-cli 0.24.5.26-0.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,972 kB
  • sloc: python: 9,789; sh: 121; makefile: 11
file content (20 lines) | stat: -rw-r--r-- 438 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import unittest

from trashcli.empty.parse_reply import parse_reply


class TestParseReply(unittest.TestCase):
    def test_y(self):
        assert parse_reply('y') == True

    def test_Y(self):
        assert parse_reply('Y') == True

    def test_n(self):
        assert parse_reply('n') == False

    def test_N(self):
        assert parse_reply('N') == False

    def test_empty_string(self):
        assert parse_reply('') == False