<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: MWæ NZå</title>
    <description>The latest articles on Forem by MWæ NZå (@mw_nz_3025915caf4a61ed7).</description>
    <link>https://forem.com/mw_nz_3025915caf4a61ed7</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1561927%2F6efc163b-6425-4617-9f2f-69a4af5d8e3f.jpeg</url>
      <title>Forem: MWæ NZå</title>
      <link>https://forem.com/mw_nz_3025915caf4a61ed7</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/mw_nz_3025915caf4a61ed7"/>
    <language>en</language>
    <item>
      <title>testing python code</title>
      <dc:creator>MWæ NZå</dc:creator>
      <pubDate>Mon, 03 Jun 2024 18:09:24 +0000</pubDate>
      <link>https://forem.com/mw_nz_3025915caf4a61ed7/testing-python-code-40ib</link>
      <guid>https://forem.com/mw_nz_3025915caf4a61ed7/testing-python-code-40ib</guid>
      <description>&lt;p&gt;def test_user_names(first, last):&lt;br&gt;
    """" a function that prompts for user names """&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;full_name = first + " " + last
return full_name.title()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;guys above is my basic python code which is supposed to prompt for user input, first and last names.&lt;/p&gt;

&lt;p&gt;note*.. i have written my file name containing the function above with a test_names.py, i have also done the same for the code below&lt;/p&gt;

&lt;p&gt;below is the (unittest) code i am using to test if my code behaves correctly.&lt;/p&gt;

&lt;p&gt;""" a class to test my test_names.py code"""&lt;/p&gt;

&lt;p&gt;import unittest&lt;/p&gt;

&lt;p&gt;from test_file_names import user_names&lt;/p&gt;

&lt;p&gt;class test_nomencreture(unittest.TestCase):&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;def test_namesakes(self):
    adder = user_names('john','pedro')
    self.assertEquals(adder, 'john pedro')
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;unittest.main()&lt;/p&gt;

&lt;p&gt;....but for some reason am getting an error ,the test is failing ,the test is not running ,&lt;/p&gt;




&lt;p&gt;Ran 0 tests in 0.000s&lt;/p&gt;

&lt;p&gt;NO TESTS RAN&lt;/p&gt;

&lt;p&gt;Process finished with exit code 5&lt;/p&gt;

&lt;p&gt;Empty suite&lt;/p&gt;

&lt;p&gt;(i am a beginner forgive me if the error is too basic . i do not know what the empty suite means,your help will be much appreciated&lt;/p&gt;

</description>
      <category>programming</category>
      <category>beginners</category>
      <category>python</category>
      <category>learning</category>
    </item>
  </channel>
</rss>
