Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #109056 > unrolled thread
| Started by | Palpandi <palpandi111@gmail.com> |
|---|---|
| First post | 2016-05-24 05:50 -0700 |
| Last post | 2016-05-24 18:30 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
Unit test a class with xml elements Palpandi <palpandi111@gmail.com> - 2016-05-24 05:50 -0700
Re: Unit test a class with xml elements John Gordon <gordon@panix.com> - 2016-05-24 18:30 +0000
| From | Palpandi <palpandi111@gmail.com> |
|---|---|
| Date | 2016-05-24 05:50 -0700 |
| Subject | Unit test a class with xml elements |
| Message-ID | <4c25c98f-9cf0-4a70-b33b-1d2c982de646@googlegroups.com> |
Hi, How can I unit test a class which using xml elements? There is a posiibility of different combinations of xml. What is the better way to test this kind of class? XML binding is used here. Share if any examples available. Thanks.
[toc] | [next] | [standalone]
| From | John Gordon <gordon@panix.com> |
|---|---|
| Date | 2016-05-24 18:30 +0000 |
| Message-ID | <ni26k3$nrg$2@reader1.panix.com> |
| In reply to | #109056 |
In <4c25c98f-9cf0-4a70-b33b-1d2c982de646@googlegroups.com> Palpandi <palpandi111@gmail.com> writes:
> Hi,
> How can I unit test a class which using xml elements?
> There is a posiibility of different combinations of xml.
> What is the better way to test this kind of class?
> XML binding is used here.
> Share if any examples available.
Create your own sample XML illustrating each desired combination.
Then write test cases for each.
--
John Gordon A is for Amy, who fell down the stairs
gordon@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web