File size: 816 Bytes
0827183
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

import unittest
from typing import List

from botbuilder.dialogs.choices import Choice
from botbuilder.schema import CardAction


class ChoiceTest(unittest.TestCase):
    def test_value_round_trips(self) -> None:
        choice = Choice()
        expected = "any"
        choice.value = expected
        self.assertIs(expected, choice.value)

    def test_action_round_trips(self) -> None:
        choice = Choice()
        expected = CardAction()
        choice.action = expected
        self.assertIs(expected, choice.action)

    def test_synonyms_round_trips(self) -> None:
        choice = Choice()
        expected: List[str] = []
        choice.synonyms = expected
        self.assertIs(expected, choice.synonyms)